summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-10-02 13:46:06 +0200
committerThibaut Girka <thib@sitedethib.com>2019-10-05 13:56:40 +0200
commit791d93ff0ecb304e3278b786e66689521e9ad19d (patch)
tree94c9f30fddbc29e210f7f865932133666e00790e
parent977e711e22dd5171cbff241c7e763de8d34eef26 (diff)
Make credo happy
-rw-r--r--lib/pleroma/web/activity_pub/transmogrifier.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex
index 8f9bf5525..449c777dc 100644
--- a/lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/lib/pleroma/web/activity_pub/transmogrifier.ex
@@ -782,16 +782,16 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
end
@spec get_embedded_obj_helper(String.t() | Object.t(), User.t()) :: {:ok, Object.t()} | nil
- def get_embedded_obj_helper(%{"attributedTo" => attributedTo, "id" => object_id} = data, %User{
+ def get_embedded_obj_helper(%{"attributedTo" => attributed_to, "id" => object_id} = data, %User{
ap_id: ap_id
})
- when attributedTo == ap_id do
+ when attributed_to == ap_id do
with {:ok, activity} <-
handle_incoming(%{
"type" => "Create",
"to" => data["to"],
"cc" => data["cc"],
- "actor" => data["attributedTo"],
+ "actor" => attributed_to,
"object" => data
}) do
{:ok, Object.normalize(activity)}