about summary refs log tree commit diff
path: root/app/services/activitypub/fetch_remote_status_service.rb
diff options
context:
space:
mode:
authorpuckipedia <puck@puckipedia.com>2018-01-15 06:51:46 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-01-15 06:51:46 +0100
commit74c1c9ec01addc7474d74712f76fb6d6d5eecdf7 (patch)
tree1e6f48eaabadab05919d9fb143dc86e8450600b0 /app/services/activitypub/fetch_remote_status_service.rb
parent537d2939b10df9121e5a9f13a9d66c568ff681bf (diff)
Allow attributedTo in a status to be an embedded object (#6238)
Diffstat (limited to 'app/services/activitypub/fetch_remote_status_service.rb')
-rw-r--r--app/services/activitypub/fetch_remote_status_service.rb2
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)