Added date constraint to as_group_timeline in status.rb

This commit is contained in:
admin 2020-11-13 15:37:32 +00:00
parent b75e34253c
commit 6a8a538d33

@ -308,7 +308,8 @@ class Status < ApplicationRecord
end
def as_group_timeline(group)
where(group: group).without_replies
query = where('updated_at > ?', 5.days.ago)
query.where(group: group).without_replies
end
def as_group_collection_timeline(groupIds)