diff options
author | ThibG <thib@sitedethib.com> | 2020-09-01 13:31:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 13:31:28 +0200 |
commit | 79305428a7c2bda311bc9d367a84acc28f569522 (patch) | |
tree | 2094941006afa438c0244c6721836018b6fbd3b4 /app/lib | |
parent | 1c308af84cddf8491b11aa6431c225faa80a9a5b (diff) |
Add configuration option to filter replies in lists (#9205)
* Add database support for list show-reply preferences * Add backend support to read and update list-specific show_replies settings * Add basic UI to set list replies setting * Add specs for list replies policy * Switch "cycling" reply policy link to a set of radio inputs * Capitalize replies_policy strings * Change radio button design to be consistent with that of the directory explorer
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/feed_manager.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb index bebdc4a74..9ab7b53be 100644 --- a/app/lib/feed_manager.rb +++ b/app/lib/feed_manager.rb @@ -49,7 +49,8 @@ class FeedManager def push_to_list(list, status) 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? + should_filter &&= !list.show_all_replies? + should_filter &&= !(list.show_list_replies? && ListAccount.where(list_id: list.id, account_id: status.in_reply_to_account_id).exists?) return false if should_filter end |