Added date constraint to as_group_timeline in status.rb
This commit is contained in:
parent
b75e34253c
commit
6a8a538d33
@ -308,7 +308,8 @@ class Status < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def as_group_timeline(group)
|
def as_group_timeline(group)
|
||||||
where(group: group).without_replies
|
query = where('updated_at > ?', 5.days.ago)
|
||||||
|
query.where(group: group).without_replies
|
||||||
end
|
end
|
||||||
|
|
||||||
def as_group_collection_timeline(groupIds)
|
def as_group_collection_timeline(groupIds)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user