diff options
author | puckipedia <puck@puckipedia.com> | 2018-01-15 06:51:46 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-01-15 06:51:46 +0100 |
commit | 74c1c9ec01addc7474d74712f76fb6d6d5eecdf7 (patch) | |
tree | 1e6f48eaabadab05919d9fb143dc86e8450600b0 | |
parent | 537d2939b10df9121e5a9f13a9d66c568ff681bf (diff) |
Allow attributedTo in a status to be an embedded object (#6238)
-rw-r--r-- | app/services/activitypub/fetch_remote_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/fetch_remote_status_service.rb b/app/services/activitypub/fetch_remote_status_service.rb index 7649bceca..503c175d8 100644 --- a/app/services/activitypub/fetch_remote_status_service.rb +++ b/app/services/activitypub/fetch_remote_status_service.rb @@ -30,7 +30,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService end def actor_id - first_of_value(@json['attributedTo']) + value_or_id(first_of_value(@json['attributedTo'])) end def trustworthy_attribution?(uri, attributed_to) |