mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "PERF: Don't join on shared drafts unless you have to"
This reverts commit efedd9745f.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user