Skip to content

Commit

Permalink
Include replies to list owner and replies to list members in list sta…
Browse files Browse the repository at this point in the history
…tuses (mastodon#9324)
  • Loading branch information
ClearlyClaire authored and Gargron committed Nov 21, 2018
1 parent 384e953 commit 466e3d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/feed_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def unpush_from_home(account, status)
end

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)
trim(:list, list.id)
PushUpdateWorker.perform_async(list.account_id, status.id, "timeline:list:#{list.id}") if push_update_required?("timeline:list:#{list.id}")
Expand Down

0 comments on commit 466e3d7

Please sign in to comment.