Use to_json call for pins API (#38231)
This commit is contained in:
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
|
||||
Reference in new issue
Block a user