Fix distribute_add_activity and distribute_remove_activity (#7393)

This commit is contained in:
abcang 2018-05-07 16:30:18 +09:00 committed by Eugen Rochko
parent ea4e243303
commit db012b57c2

View file

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