From: puckipedia Date: Mon, 15 Jan 2018 05:51:46 +0000 (+0100) Subject: Allow attributedTo in a status to be an embedded object (#6238) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=74c1c9ec01addc7474d74712f76fb6d6d5eecdf7;p=mastodon.git Allow attributedTo in a status to be an embedded object (#6238) --- 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)