Browse Source

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

ThibG 3 weeks ago
parent
commit
e625425c8f
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      app/lib/feed_manager.rb

+ 5
- 1
app/lib/feed_manager.rb View File

@@ -40,7 +40,11 @@ class FeedManager
40 40
   end
41 41
 
42 42
   def push_to_list(list, status)
43
-    return false if status.reply? && status.in_reply_to_account_id != status.account_id
43
+    if status.reply? && status.in_reply_to_account_id != status.account_id
44
+      should_filter = status.in_reply_to_account_id != list.account_id
45
+      should_filter &&= !ListAccount.where(list_id: list.id, account_id: status.in_reply_to_account_id).exists?
46
+      return false if should_filter
47
+    end
44 48
     return false unless add_to_feed(:list, list.id, status)
45 49
     trim(:list, list.id)
46 50
     PushUpdateWorker.perform_async(list.account_id, status.id, "timeline:list:#{list.id}") if push_update_required?("timeline:list:#{list.id}")