Fix distribute_add_activity and distribute_remove_activity (#7393)
parent
27cfb13b83
commit
b9c17c6580
|
@ -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…
Reference in New Issue