Browse Source

Filter block users and reblogs of them from public timeline

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
769b1ebbe0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/channels/public_channel.rb

+ 1
- 1
app/channels/public_channel.rb View File

@ -5,7 +5,7 @@ class PublicChannel < ApplicationCable::Channel
message = ActiveSupport::JSON.decode(encoded_message) message = ActiveSupport::JSON.decode(encoded_message)
status = Status.find_by(id: message['id']) 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) message['message'] = FeedManager.instance.inline_render(current_user.account, status)

Loading…
Cancel
Save