Commit 6a8a538d authored by admin's avatar admin

Added date constraint to as_group_timeline in status.rb

parent b75e3425
......@@ -308,7 +308,8 @@ class Status < ApplicationRecord
def as_group_timeline(group)
where(group: group).without_replies
query = where('updated_at > ?', 5.days.ago)
query.where(group: group).without_replies
def as_group_collection_timeline(groupIds)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment