mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 20:15:10 +01:00
Filter block users and reblogs of them from public timeline
This commit is contained in:
parent
22a8801dbc
commit
769b1ebbe0
@ -5,7 +5,7 @@ class PublicChannel < ApplicationCable::Channel
|
||||
message = ActiveSupport::JSON.decode(encoded_message)
|
||||
|
||||
status = Status.find_by(id: message['id'])
|
||||
next if status.nil?
|
||||
next if status.nil? || current_user.account.blocking?(status.account) || (status.reblog? && current_user.account.blocking?(status.reblog.account))
|
||||
|
||||
message['message'] = FeedManager.instance.inline_render(current_user.account, status)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user