0
0
Fork 0

Add "direct" visibility level in the backend. Web UI is not yet

adjusted to allow choosing it, yet
This commit is contained in:
Eugen Rochko 2017-03-15 22:52:57 +01:00
parent c1124228e8
commit 74ae158c2f
6 changed files with 32 additions and 15 deletions

View file

@ -108,6 +108,7 @@ class FeedManager
elsif status.reblog? # Filter out a reblog
should_filter = receiver.blocking?(status.reblog.account) # if I'm blocking the reblogged person
should_filter ||= receiver.muting?(status.reblog.account) # or muting that person
should_filter ||= status.reblog.account.blocking?(receiver) # or if the author of the reblogged status is blocking me
end
should_filter ||= receiver.blocking?(status.mentions.map(&:account_id)) # or if it mentions someone I blocked