Use to_json call for pins API (#38231)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-03-16 15:06:22 +00:00
1 parent 968ce25c39
commit 092acbd47b
2 files changed
+6 -2

No files matched your search

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