Update status.rb

This commit is contained in:
admin 2020-07-10 14:29:51 +00:00
parent 5b22f7eda7
commit b37597e178

View File

@ -342,12 +342,12 @@ class Status < ApplicationRecord
end
def as_pro_timeline(account = nil)
query = timeline_scope.without_replies.popular_accounts.where('statuses.created_at > ?', 2.hours.ago)
query = timeline_scope.without_replies.popular_accounts.where('statuses.updated_at > ?', 2.hours.ago)
apply_timeline_filters(query, account)
end
def as_public_timeline(account = nil)
query = timeline_scope.without_replies.where('statuses.created_at > ?', 15.minutes.ago)
query = timeline_scope.without_replies.where('statuses.updated_at > ?', 15.minutes.ago)
apply_timeline_filters(query, account)
end