]> cat aescling's git repositories - mastodon.git/commitdiff
Fix distribute_add_activity and distribute_remove_activity (#7393)
authorabcang <abcang1015@gmail.com>
Mon, 7 May 2018 07:30:18 +0000 (16:30 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 7 May 2018 07:30:18 +0000 (09:30 +0200)
app/controllers/api/v1/statuses/pins_controller.rb

index bba6a6f48020234df45921c20e42310f2b1b8717..54f8be667d5d7aa1005799eff16f7a791920df18 100644 (file)
@@ -39,7 +39,7 @@ class Api::V1::Statuses::PinsController < Api::BaseController
       adapter: ActivityPub::Adapter
     ).as_json
 
-    ActivityPub::RawDistributionWorker.perform_async(Oj.dump(json), current_account)
+    ActivityPub::RawDistributionWorker.perform_async(Oj.dump(json), current_account.id)
   end
 
   def distribute_remove_activity!
@@ -49,6 +49,6 @@ class Api::V1::Statuses::PinsController < Api::BaseController
       adapter: ActivityPub::Adapter
     ).as_json
 
-    ActivityPub::RawDistributionWorker.perform_async(Oj.dump(json), current_account)
+    ActivityPub::RawDistributionWorker.perform_async(Oj.dump(json), current_account.id)
   end
 end