Skip to content
Snippets Groups Projects
Commit 769b1ebb authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Filter block users and reblogs of them from public timeline

parent 22a8801d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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