about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-08-29 05:08:11 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-28 22:08:11 +0200
commit938cd2875b14db3655a6c9f82f672f4baf7720a3 (patch)
tree2fbde93a6a4843fc9105d7810b1edc337fd9a629 /app
parent7876aed134be16d04cf7d177299ae4fda690c219 (diff)
Fix Delete activity handling when the status has been reblogged (#4729)
Diffstat (limited to 'app')
-rw-r--r--app/lib/activitypub/activity/delete.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/activitypub/activity/delete.rb b/app/lib/activitypub/activity/delete.rb
index e7eb53a02..789ed58f1 100644
--- a/app/lib/activitypub/activity/delete.rb
+++ b/app/lib/activitypub/activity/delete.rb
@@ -16,8 +16,8 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity
   private
 
   def forward_for_reblogs(status)
-    ActivityPub::RawDistributionWorker.push_bulk(status.reblogs.includes(:account).references(:account).merge(Account.local).pluck(:account_id)) do |account|
-      [payload, account.id]
+    ActivityPub::RawDistributionWorker.push_bulk(status.reblogs.includes(:account).references(:account).merge(Account.local).pluck(:account_id)) do |account_id|
+      [payload, account_id]
     end
   end