Skip to content
Snippets Groups Projects
Commit e625425c authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Include replies to list owner and replies to list members in list statuses (#9324)

parent f13d0831
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,11 @@ class FeedManager ...@@ -40,7 +40,11 @@ class FeedManager
end end
def push_to_list(list, status) def push_to_list(list, status)
return false if status.reply? && status.in_reply_to_account_id != status.account_id if status.reply? && status.in_reply_to_account_id != status.account_id
should_filter = status.in_reply_to_account_id != list.account_id
should_filter &&= !ListAccount.where(list_id: list.id, account_id: status.in_reply_to_account_id).exists?
return false if should_filter
end
return false unless add_to_feed(:list, list.id, status) return false unless add_to_feed(:list, list.id, status)
trim(:list, list.id) trim(:list, list.id)
PushUpdateWorker.perform_async(list.account_id, status.id, "timeline:list:#{list.id}") if push_update_required?("timeline:list:#{list.id}") PushUpdateWorker.perform_async(list.account_id, status.id, "timeline:list:#{list.id}") if push_update_required?("timeline:list:#{list.id}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment