federator: hook up Publisher.publish()

This commit is contained in:
William Pitcock 2019-05-12 03:57:10 +00:00
parent f7a6a37c4e
commit 676752bb83

View file

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