Polish IdempotencyPlug
This commit is contained in:
parent
159630b21c
commit
889a9c3a3f
3 changed files with 14 additions and 14 deletions
|
|
@ -564,7 +564,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||
case CommonAPI.post(user, params) do
|
||||
{:error, message} ->
|
||||
conn
|
||||
|> put_status(422)
|
||||
|> put_status(:unprocessable_entity)
|
||||
|> json(%{error: message})
|
||||
|
||||
{:ok, activity} ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue