diff options
author | cbayerlein <c.bayerlein@gmail.com> | 2018-09-28 00:37:21 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-09-28 00:37:21 +0200 |
commit | 4b78546135b141da9998d284bcba3107d98fe951 (patch) | |
tree | 97abb6aa36afcf388f5d3bdc44f08916dffd1aa3 | |
parent | 3f9ec3de82c1a3879a2b092672f51c1caca76f5c (diff) |
Exclude replies from list timelines (#8683)
* Changed list behaviour I added the following line to the FeedManager (app/lib/feed_manager.rb) in the push_to_list function: `return false if status.reply?` Now all posts that are replies are filtered out, so that now only "genuine" posts are displayed in the list. This is a first approach to solve issue #5916 * Update feed_manager.rb As suggested by @Gargron
-rw-r--r-- | app/lib/feed_manager.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb index b59a9f1cd..b10e5dd24 100644 --- a/app/lib/feed_manager.rb +++ b/app/lib/feed_manager.rb @@ -40,6 +40,7 @@ class FeedManager end def push_to_list(list, status) + return false if status.reply? && status.in_reply_to_account_id != status.account_id 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}") |