]> cat aescling's git repositories - mastodon.git/commitdiff
Fix Tombstone.delete_all ArgumentError (#9978)
authorabcang <abcang1015@gmail.com>
Wed, 6 Feb 2019 01:50:52 +0000 (10:50 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 6 Feb 2019 01:50:52 +0000 (02:50 +0100)
app/services/activitypub/process_account_service.rb

index 487456f3afcec2fec587d409a583310ed041d7b5..5e33084282d93b1b21814dcc65312c786988cdc2 100644 (file)
@@ -212,7 +212,7 @@ class ActivityPub::ProcessAccountService < BaseService
   end
 
   def clear_tombstones!
-    Tombstone.delete_all(account_id: @account.id)
+    Tombstone.where(account_id: @account.id).delete_all
   end
 
   def protocol_changed?