We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 384e953 commit 466e3d7Copy full SHA for 466e3d7
1 file changed
app/lib/feed_manager.rb
@@ -40,7 +40,11 @@ def unpush_from_home(account, status)
40
end
41
42
def push_to_list(list, status)
43
- 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
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
48
return false unless add_to_feed(:list, list.id, status)
49
trim(:list, list.id)
50
PushUpdateWorker.perform_async(list.account_id, status.id, "timeline:list:#{list.id}") if push_update_required?("timeline:list:#{list.id}")
0 commit comments