]> cat aescling's git repositories - mastodon.git/commitdiff
Allow attributedTo in a status to be an embedded object (#6238)
authorpuckipedia <puck@puckipedia.com>
Mon, 15 Jan 2018 05:51:46 +0000 (06:51 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 15 Jan 2018 05:51:46 +0000 (06:51 +0100)
app/services/activitypub/fetch_remote_status_service.rb

index 7649bceca9a82db08716f0d3379b3fd4bdffd22c..503c175d8a69009984186df4ed6729741dbefca9 100644 (file)
@@ -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)