Remove doubled 'to' recipients.
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index 194a5ec3d150d5a752ff9754c0dfd2c96c77c203..f18f3df2e780b50fedf9942cf285809c2d4e7d72 100644 (file)
@@ -24,7 +24,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
 
     activity = %{
       "type" => "Create",
-      "to" => to,
+      "to" => to |> Enum.uniq,
       "actor" => actor.ap_id,
       "object" => object,
       "published" => published,