activitypub: transmogrifier: only consider `to` users as mention targets
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 8 Nov 2018 18:56:14 +0000 (18:56 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 8 Nov 2018 18:58:27 +0000 (18:58 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index a112d4cedbf2308f6487cc3fd8f92f19f39e214e..1471c9416ac2404e71cf843e57be210645a4814c 100644 (file)
@@ -693,7 +693,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
   end
 
   def add_mention_tags(object) do
-    recipients = object["to"] ++ (object["cc"] || [])
+    recipients = object["to"] || []
 
     mentions =
       recipients