Polish IdempotencyPlug

This commit is contained in:
Egor Kislitsyn 2019-06-27 01:53:36 +07:00
commit 889a9c3a3f
3 changed files with 14 additions and 14 deletions

View file

@ -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} ->