Fix ActivityPub follow interaction and add more specs (#4601)
This commit is contained in:
parent
5b9ae7981e
commit
a855956185
5 changed files with 103 additions and 6 deletions
|
@ -20,6 +20,6 @@ class ActivityPub::Activity::Accept < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def target_uri
|
||||
@target_uri ||= @object['object'].is_a?(String) ? @object['object'] : @object['object']['id']
|
||||
@target_uri ||= @object['actor']
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,6 +20,6 @@ class ActivityPub::Activity::Reject < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def target_uri
|
||||
@target_uri ||= @object['object'].is_a?(String) ? @object['object'] : @object['object']['id']
|
||||
@target_uri ||= @object['actor']
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue