From 87dd003ea536b0069125a74fdde3b75f02451aa6 Mon Sep 17 00:00:00 2001 From: puckipedia Date: Mon, 15 Jan 2018 06:51:46 +0100 Subject: [PATCH] Allow attributedTo in a status to be an embedded object (#6238) --- app/services/activitypub/fetch_remote_status_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/activitypub/fetch_remote_status_service.rb b/app/services/activitypub/fetch_remote_status_service.rb index 7649bceca9..503c175d8a 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)