activitypub: fetch_object_from_id(): prefer `actor` over `attributedTo` to avoid...
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 18:17:17 +0000 (18:17 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 18:17:17 +0000 (18:17 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index c6733e48714060539236be17f06f6885bcbb77c1..51b7872723e2403aa7364246c68c21f0a6e389b1 100644 (file)
@@ -747,7 +747,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
              "type" => "Create",
              "to" => data["to"],
              "cc" => data["cc"],
-             "actor" => data["attributedTo"],
+             "actor" => data["actor"] || data["attributedTo"],
              "object" => data
            },
            :ok <- Transmogrifier.contain_origin(id, params),