Skip to content

Commit

Permalink
Exclude replies from list timelines (mastodon#8683)
Browse files Browse the repository at this point in the history
* 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 mastodon#5916

* Update feed_manager.rb

As suggested by @Gargron
  • Loading branch information
cbayerlein authored and Gargron committed Sep 27, 2018
1 parent 3f9ec3d commit 4b78546
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/feed_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ 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
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 4b78546

Please # to comment.