Use to_json call for AP::Follow reject path (#38227)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-03-16 14:40:51 +00:00
1 parent 8ed13bc6f7
commit 70230c632c
2 files changed
+18 -1

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ class ActivityPub::Activity::Follow < ActivityPub::Activity
end
def reject_follow_request!(target_account)
json = Oj.dump(serialize_payload(FollowRequest.new(account: @account, target_account: target_account, uri: @json['id']), ActivityPub::RejectFollowSerializer))
json = serialize_payload(FollowRequest.new(account: @account, target_account: target_account, uri: @json['id']), ActivityPub::RejectFollowSerializer).to_json
ActivityPub::DeliveryWorker.perform_async(json, target_account.id, @account.inbox_url)
end
end