add a job queue

This commit is contained in:
Egor Kislitsyn 2019-01-28 22:17:17 +07:00
commit 55affbca7f
15 changed files with 358 additions and 142 deletions

View file

@ -82,7 +82,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
{:ok, body, _conn} = read_body(conn)
{:ok, doc} = decode_or_retry(body)
Federator.enqueue(:incoming_doc, doc)
Federator.incoming_doc(doc)
conn
|> send_resp(200, "")