Fix how to fix receiving signatured post
This commit is contained in:
parent
3f211a654f
commit
21f5d11fc1
2 changed files with 2 additions and 5 deletions
|
@ -119,10 +119,7 @@ class ActivityPub::Activity
|
||||||
|
|
||||||
dereferencer = ActivityPub::Dereferencer.new(@object, permitted_origin: @account.uri, signature_actor: signed_fetch_actor)
|
dereferencer = ActivityPub::Dereferencer.new(@object, permitted_origin: @account.uri, signature_actor: signed_fetch_actor)
|
||||||
|
|
||||||
return if dereferencer.object.nil?
|
@object = dereferencer.object unless dereferencer.object.nil?
|
||||||
|
|
||||||
@object = dereferencer.object
|
|
||||||
@json = @object
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def signed_fetch_actor
|
def signed_fetch_actor
|
||||||
|
|
|
@ -118,7 +118,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_status_params
|
def process_status_params
|
||||||
@status_parser = ActivityPub::Parser::StatusParser.new(@json, followers_collection: @account.followers_url)
|
@status_parser = ActivityPub::Parser::StatusParser.new(@json['signature'].present? ? @object : @json, followers_collection: @account.followers_url)
|
||||||
|
|
||||||
@params = {
|
@params = {
|
||||||
uri: @status_parser.uri,
|
uri: @status_parser.uri,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue