MastoAPI: fix & test giving MRF reject reasons
This commit is contained in:
parent
858d9fc7e8
commit
d29b8997f4
2 changed files with 18 additions and 0 deletions
|
|
@ -172,6 +172,11 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do
|
|||
with_direct_conversation_id: true
|
||||
)
|
||||
else
|
||||
{:error, {:reject, message}} ->
|
||||
conn
|
||||
|> put_status(:unprocessable_entity)
|
||||
|> json(%{error: message})
|
||||
|
||||
{:error, message} ->
|
||||
conn
|
||||
|> put_status(:unprocessable_entity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue