瀏覽代碼

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

Fix #7874
master
Eugen Rochko 5 年之前
committed by GitHub
父節點
當前提交
8461cd4bb5
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      app/services/remove_status_service.rb

+ 3
- 1
app/services/remove_status_service.rb 查看文件

@@ -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|


Loading…
取消
儲存