DEV: Remove redundant variable.

This commit is contained in:
Guo Xiang Tan 2020-09-10 14:32:11 +08:00
parent 5ef9d4d537
commit 5732e4288e
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 1 additions and 2 deletions

View File

@ -951,10 +951,9 @@ class TopicQuery
end end
def new_messages(params) def new_messages(params)
query = TopicQuery TopicQuery
.new_filter(messages_for_groups_or_user(params[:my_group_ids]), Time.at(SiteSetting.min_new_topics_time).to_datetime) .new_filter(messages_for_groups_or_user(params[:my_group_ids]), Time.at(SiteSetting.min_new_topics_time).to_datetime)
.limit(params[:count]) .limit(params[:count])
query
end end
def unread_messages(params) def unread_messages(params)