activitypub: inject to/cc fields on non-forwarded reports since Flag activities are...
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Mar 2019 19:52:08 +0000 (19:52 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Mar 2019 19:52:08 +0000 (19:52 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index 32f69e0fa6f0380b1ca23c8a1fc5a25a9f08a6a5..45a030ca34693607b97e5fecfa079eb087eb40f6 100644 (file)
@@ -388,7 +388,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
       if forward do
         Map.merge(additional, %{"to" => [], "cc" => [account.ap_id]})
       else
-        additional
+        Map.merge(additional, %{"to" => [], "cc" => []})
       end
 
     with flag_data <- make_flag_data(params, additional),