Revert "PERF: Don't join on shared drafts unless you have to"

This reverts commit efedd9745f.
This commit is contained in:
Robin Ward
2018-03-28 15:35:13 -04:00
parent a8f211bd41
commit 4b5977aa6a
5 changed files with 22 additions and 47 deletions

View File

@@ -71,10 +71,7 @@ class ListController < ApplicationController
list = TopicQuery.new(user, list_opts).public_send("list_#{filter}")
if @category.present? &&
guardian.can_create_shared_draft? &&
@category.id != SiteSetting.shared_drafts_category.to_i
if @category.present? && guardian.can_create_shared_draft?
shared_drafts = TopicQuery.new(
user,
category: SiteSetting.shared_drafts_category,