mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 05:47:41 -04:00
Ensure the incoming activity is successfully queued
This commit is contained in:
parent
c48af2cbe7
commit
ac4dc6647b
1 changed files with 9 additions and 2 deletions
|
@ -273,8 +273,15 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||
end
|
||||
|
||||
def inbox(%{assigns: %{valid_signature: true}} = conn, params) do
|
||||
Federator.incoming_ap_doc(params)
|
||||
json(conn, "ok")
|
||||
case Federator.incoming_ap_doc(params) do
|
||||
{:ok, %Oban.Job{}} ->
|
||||
json(conn, "ok")
|
||||
|
||||
_ ->
|
||||
conn
|
||||
|> put_status(:internal_server_error)
|
||||
|> json("error")
|
||||
end
|
||||
end
|
||||
|
||||
def inbox(%{assigns: %{valid_signature: false}} = conn, _params) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue