mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
BUGFIX: the /top page now shows the first non-empty period
This commit is contained in:
@ -96,12 +96,6 @@ class TopicQuery
|
||||
end
|
||||
end
|
||||
|
||||
TopTopic.periods.each do |period|
|
||||
define_method("list_top_#{period}") do
|
||||
list_top_for(period)
|
||||
end
|
||||
end
|
||||
|
||||
def list_topics_by(user)
|
||||
create_list(:user_topics) do |topics|
|
||||
topics.where(user_id: user.id)
|
||||
|
Reference in New Issue
Block a user