diff options
Diffstat (limited to 'app/services/fan_out_on_write_service.rb')
-rw-r--r-- | app/services/fan_out_on_write_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index 87a7c55ac..87a83e892 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -16,7 +16,8 @@ class FanOutOnWriteService < BaseService end # Deliver to local mentioned - status.mentions.each do |mentioned_account| + status.mentioned_accounts.each do |mention| + mentioned_account = mention.account next unless mentioned_account.local? push(:mentions, mentioned_account.id, status) end |