Make outgoing salmons work.
This commit is contained in:
parent
bed0b39813
commit
6843755834
8 changed files with 117 additions and 7 deletions
|
|
@ -7,7 +7,11 @@ defmodule Pleroma.Web.Federator do
|
|||
def handle(:publish, activity) do
|
||||
Logger.debug("Running publish for #{activity.data["id"]}")
|
||||
with actor when not is_nil(actor) <- User.get_cached_by_ap_id(activity.data["actor"]) do
|
||||
Logger.debug("Sending #{activity.data["id"]} out via websub")
|
||||
Pleroma.Web.Websub.publish(Pleroma.Web.OStatus.feed_path(actor), actor, activity)
|
||||
|
||||
Logger.debug("Sending #{activity.data["id"]} out via salmon")
|
||||
Pleroma.Web.Salmon.publish(actor, activity)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue