Verified Commit 0bbc155e authored by Alex Gleason's avatar Alex Gleason

Bug fix #207

parent f8f50180
Pipeline #109769035 failed with stage
in 7 minutes and 8 seconds
......@@ -34,9 +34,9 @@ class ProcessMentionsService < BaseService
# eg @moderators could be configured to forward mentions to @alex and @mk
forwarding_accounts.each do |forwarding_account|
# Skip it if the post author and forwarding account match
return if status.account_id == forwarding_account.id
next if status.account_id == forwarding_account.id
# Skip it if forwarding is configured on oneself
return if mentioned_account.id == forwarding_account.id
next if mentioned_account.id == forwarding_account.id
mentions << forwarding_account.mentions.where(status: status).first_or_create(status: status)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment