From fcfdd94fe9665a626161375f1e0efc4c223c1f39 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 4 Feb 2020 03:44:08 -0600 Subject: [PATCH] controllers: temp fix exception in show actions. Temp fix a regression caused by c7185724d. --- app/controllers/moderator/post/queues_controller.rb | 2 +- app/controllers/related_tags_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/moderator/post/queues_controller.rb b/app/controllers/moderator/post/queues_controller.rb index 205677d10..a24ffbf44 100644 --- a/app/controllers/moderator/post/queues_controller.rb +++ b/app/controllers/moderator/post/queues_controller.rb @@ -18,7 +18,7 @@ module Moderator @posts = ::Post.includes(:disapprovals, :uploader).order("posts.id asc").pending_or_flagged.available_for_moderation(search_params[:hidden]).tag_match(search_params[:tags]).paginate(params[:page], :limit => per_page) @posts.each # hack to force rails to eager load end - respond_with(@posts) + #respond_with(@posts) end def random diff --git a/app/controllers/related_tags_controller.rb b/app/controllers/related_tags_controller.rb index af329c0f7..b356bee69 100644 --- a/app/controllers/related_tags_controller.rb +++ b/app/controllers/related_tags_controller.rb @@ -6,6 +6,6 @@ class RelatedTagsController < ApplicationController category = params[:category] || search_params[:category] @query = RelatedTagQuery.new(query: query, category: category, user: CurrentUser.user) - respond_with(@query) + #respond_with(@query) end end