Fix QuoteAuthorization id not being properly serialized when federating revocation (#36083)
This commit is contained in:
@@ -8,7 +8,7 @@ class ActivityPub::QuoteAuthorizationSerializer < ActivityPub::Serializer
|
||||
attributes :id, :type, :attributed_to, :interacting_object, :interaction_target
|
||||
|
||||
def id
|
||||
ActivityPub::TagManager.instance.approval_uri_for(object)
|
||||
ActivityPub::TagManager.instance.approval_uri_for(object, check_approval: !instance_options[:force_approval_id])
|
||||
end
|
||||
|
||||
def type
|
||||
|
||||
@@ -34,6 +34,6 @@ class RevokeQuoteService < BaseService
|
||||
end
|
||||
|
||||
def signed_activity_json
|
||||
@signed_activity_json ||= Oj.dump(serialize_payload(@quote, ActivityPub::DeleteQuoteAuthorizationSerializer, signer: @account, always_sign: true))
|
||||
@signed_activity_json ||= Oj.dump(serialize_payload(@quote, ActivityPub::DeleteQuoteAuthorizationSerializer, signer: @account, always_sign: true, force_approval_id: true))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user