mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
BUGFIX: phantom new and unread for category definition topics
This commit is contained in:
@ -40,6 +40,11 @@ class ListController < ApplicationController
|
||||
list_opts = build_topic_list_options
|
||||
list_opts.merge!(options) if options
|
||||
user = list_target_user
|
||||
|
||||
if filter == :latest && params[:category].blank?
|
||||
list_opts[:no_definitions] = true
|
||||
end
|
||||
|
||||
list = TopicQuery.new(user, list_opts).public_send("list_#{filter}")
|
||||
list.more_topics_url = construct_url_with(list_opts)
|
||||
if Discourse.anonymous_filters.include?(filter)
|
||||
|
Reference in New Issue
Block a user