From 909d0d5e88b046f8bb69c893c54944bb2aad12cf Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 27 Oct 2016 19:33:04 +0200 Subject: Adding public timeline silencing --- app/services/fan_out_on_write_service.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/services') diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index 312994db5..707f74c35 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -30,6 +30,7 @@ class FanOutOnWriteService < BaseService end def deliver_to_public(status) + return if status.account.silenced? FeedManager.instance.broadcast(:public, id: status.id) end end -- cgit