Browse Source

Fix distribute_add_activity and distribute_remove_activity (#7393)

pull/4/head
abcang 6 years ago
committed by Eugen Rochko
parent
commit
db012b57c2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/api/v1/statuses/pins_controller.rb

+ 2
- 2
app/controllers/api/v1/statuses/pins_controller.rb View 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

Loading…
Cancel
Save