federator: hook up Publisher.publish()
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 12 May 2019 03:57:10 +0000 (03:57 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 12 May 2019 05:04:16 +0000 (05:04 +0000)
lib/pleroma/web/federator/federator.ex

index d8534b365aada326f78a7fa64bebdc65136a5d9b..ef2708c0776fb233ba6e2dca619b26d00115b700 100644 (file)
@@ -11,6 +11,7 @@ defmodule Pleroma.Web.Federator do
   alias Pleroma.Web.ActivityPub.Transmogrifier
   alias Pleroma.Web.ActivityPub.Utils
   alias Pleroma.Web.ActivityPub.Visibility
+  alias Pleroma.Web.Federator.Publisher
   alias Pleroma.Web.Federator.RetryQueue
   alias Pleroma.Web.OStatus
   alias Pleroma.Web.Salmon
@@ -106,8 +107,7 @@ defmodule Pleroma.Web.Federator do
         end
       end
 
-      Logger.info(fn -> "Sending #{activity.data["id"]} out via AP" end)
-      Pleroma.Web.ActivityPub.ActivityPub.publish(actor, activity)
+      Publisher.publish(actor, activity)
     end
   end