Added date constraint to as_group_timeline in status.rb
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user