Skip to content
Snippets Groups Projects
Unverified Commit 8461cd4b authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Send undo of boost to original poster if reblog (#7959)

Fix #7874
parent baff4a7c
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,9 @@ class RemoveStatusService < BaseService
# delete notification - so here, we explicitly
# send it to them
target_accounts = (@mentions.map(&:account).reject(&:local?) + @reblogs.map(&:account).reject(&:local?)).uniq(&:id)
target_accounts = (@mentions.map(&:account).reject(&:local?) + @reblogs.map(&:account).reject(&:local?))
target_accounts << @status.reblog.account if @status.reblog? && !@status.reblog.account.local?
target_accounts.uniq!(&:id)
# Ostatus
NotificationWorker.push_bulk(target_accounts.select(&:ostatus?).uniq(&:domain)) do |target_account|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment