Salmons can't carry private information.
authorlain <lain@soykaf.club>
Mon, 19 Feb 2018 10:14:46 +0000 (11:14 +0100)
committerlain <lain@soykaf.club>
Mon, 19 Feb 2018 10:14:46 +0000 (11:14 +0100)
lib/pleroma/web/federator/federator.ex

index e65916c478a58b74c6882eada7f1ccccd659d57d..a13126048b883e1cfd804f6333e8450d829f6b1c 100644 (file)
@@ -46,10 +46,10 @@ defmodule Pleroma.Web.Federator do
       if ActivityPub.is_public?(activity) do
         Logger.info(fn -> "Sending #{activity.data["id"]} out via websub" end)
         Websub.publish(Pleroma.Web.OStatus.feed_path(actor), actor, activity)
-      end
 
-      Logger.info(fn -> "Sending #{activity.data["id"]} out via salmon" end)
-      Pleroma.Web.Salmon.publish(actor, activity)
+        Logger.info(fn -> "Sending #{activity.data["id"]} out via salmon" end)
+        Pleroma.Web.Salmon.publish(actor, activity)
+      end
 
       Logger.info(fn -> "Sending #{activity.data["id"]} out via AP" end)
       Pleroma.Web.ActivityPub.ActivityPub.publish(actor, activity)