Salmon is ok!

This commit is contained in:
lain 2018-02-18 16:15:04 +01:00
parent 803bdc1a67
commit 8567feed47
1 changed files with 5 additions and 5 deletions

View File

@ -44,14 +44,14 @@ def handle(:publish, activity) do
with actor when not is_nil(actor) <- User.get_cached_by_ap_id(activity.data["actor"]) do with actor when not is_nil(actor) <- User.get_cached_by_ap_id(activity.data["actor"]) do
{:ok, actor} = WebFinger.ensure_keys_present(actor) {:ok, actor} = WebFinger.ensure_keys_present(actor)
if ActivityPub.is_public?(activity) do if ActivityPub.is_public?(activity) do
Logger.debug(fn -> "Sending #{activity.data["id"]} out via salmon" end) Logger.info(fn -> "Sending #{activity.data["id"]} out via websub" end)
Pleroma.Web.Salmon.publish(actor, activity)
Logger.debug(fn -> "Sending #{activity.data["id"]} out via websub" end)
Websub.publish(Pleroma.Web.OStatus.feed_path(actor), actor, activity) Websub.publish(Pleroma.Web.OStatus.feed_path(actor), actor, activity)
end end
Logger.debug(fn -> "Sending #{activity.data["id"]} out via AP" 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 AP" end)
Pleroma.Web.ActivityPub.ActivityPub.publish(actor, activity) Pleroma.Web.ActivityPub.ActivityPub.publish(actor, activity)
end end
end end