From 74c1c9ec01addc7474d74712f76fb6d6d5eecdf7 Mon Sep 17 00:00:00 2001
From: puckipedia <puck@puckipedia.com>
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)