This commit is contained in:
Kurtis Rainbolt-Greene 2017-04-04 15:24:44 +00:00 committed by GitHub
commit 2a1b395e4d

View File

@ -54,9 +54,9 @@ class FanOutOnWriteService < BaseService
payload = FeedManager.instance.inline_render(nil, 'api/v1/statuses/show', status)
status.tags.find_each do |tag|
FeedManager.instance.broadcast("hashtag:#{tag.name}", event: 'update', payload: payload)
FeedManager.instance.broadcast("hashtag:#{tag.name}:local", event: 'update', payload: payload) if status.account.local?
status.tags.pluck(:name) do |name|
FeedManager.instance.broadcast("hashtag:#{name}", event: 'update', payload: payload)
FeedManager.instance.broadcast("hashtag:#{name}:local", event: 'update', payload: payload) if status.account.local?
end
end