Use to_json call for AP::Follow reject path (#38227)
This commit is contained in:
1 parent
8ed13bc6f7
commit
70230c632c
2 files changed
+18
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user