Kaynağa Gözat

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

Fix #7874
master
Eugen Rochko 5 yıl önce
committed by GitHub
ebeveyn
işleme
8461cd4bb5
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. +3
    -1
      app/services/remove_status_service.rb

+ 3
- 1
app/services/remove_status_service.rb Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet