Skip to content
Snippets Groups Projects
Commit 3f75f522 authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Fix subtle home feed filtering bug

parent 7e14eefc
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,10 @@ class FeedManager
"feed:#{type}:#{id}"
end
# Filter status out of the home feed if it is a reply to someone the user doesn't follow
def filter_status?(status, follower)
replied_to_user = status.reply? ? status.thread.account : nil
(status.reply? && !(follower.id = replied_to_user.id || follower.following?(replied_to_user)))
(status.reply? && !(follower.id == replied_to_user.id || replied_to_user.id == status.account_id || follower.following?(replied_to_user)))
end
def push(timeline_type, account, status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment