0
0
Fork 0

Fix ActivityPub follow interaction and add more specs (#4601)

This commit is contained in:
unarist 2017-08-14 23:57:46 +09:00 committed by Eugen Rochko
parent 5b9ae7981e
commit a855956185
5 changed files with 103 additions and 6 deletions

View file

@ -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

View file

@ -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