require Logger
@websub Application.get_env(:pleroma, :websub)
+ @ostatus Application.get_env(:pleroma, :ostatus)
@max_jobs 10
def start_link do
@websub.verify(websub)
end
+ def handle(:incoming_doc, doc) do
+ Logger.debug("Got document, trying to parse")
+ @ostatus.handle_incoming(doc)
+ end
+
def handle(type, payload) do
Logger.debug(fn -> "Unknown task: #{type}" end)
{:error, "Don't know what do do with this"}