fixed Map,put arguments, updated nomenclature
authorKaren Konou <konoukaren@gmail.com>
Mon, 4 Feb 2019 09:23:07 +0000 (10:23 +0100)
committerKaren Konou <konoukaren@gmail.com>
Mon, 4 Feb 2019 09:23:07 +0000 (10:23 +0100)
lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex

index 1c2de555f37c2d2c7bc186e52d6ee79e1dfcb76c..667f5da03e235853b320e5cd6443410b9660b5c9 100644 (file)
@@ -10,8 +10,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
     follower_collection = User.get_by_ap_id(message["actor"].follower_address)
 
     message
-    |> Map.put(["to"], [follower_collection])
-    |> Map.put(["cc"], ["https://www.w3.org/ns/activitystreams#Public"])
+    |> Map.put("to", [follower_collection])
+    |> Map.put("cc", ["https://www.w3.org/ns/activitystreams#Public"])
   end
 
   @impl true