diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-09-14 14:07:22 +0200 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-17 22:07:54 +0300 |
commit | 7bf269fe836ded974d2187c6b36eba4ab185ff25 (patch) | |
tree | 0f809748247ceb0c792358500da5b5f352446828 /lib/pleroma/web/api_spec | |
parent | abf25e5d5254edc88a65610bf5a0fd7e52f545c3 (diff) | |
download | pleroma-7bf269fe836ded974d2187c6b36eba4ab185ff25.tar.gz |
Fix MRF reject for ChatMessage
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/chat_operation.ex | 3 | ||||
-rw-r--r-- | lib/pleroma/web/api_spec/operations/status_operation.ex | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/chat_operation.ex b/lib/pleroma/web/api_spec/operations/chat_operation.ex index b1a0d26ab..56554d5b4 100644 --- a/lib/pleroma/web/api_spec/operations/chat_operation.ex +++ b/lib/pleroma/web/api_spec/operations/chat_operation.ex @@ -184,7 +184,8 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do "application/json", ChatMessage ), - 400 => Operation.response("Bad Request", "application/json", ApiError) + 400 => Operation.response("Bad Request", "application/json", ApiError), + 422 => Operation.response("MRF Rejection", "application/json", ApiError) }, security: [ %{ diff --git a/lib/pleroma/web/api_spec/operations/status_operation.ex b/lib/pleroma/web/api_spec/operations/status_operation.ex index 5bd4619d5..d7ebde6f6 100644 --- a/lib/pleroma/web/api_spec/operations/status_operation.ex +++ b/lib/pleroma/web/api_spec/operations/status_operation.ex @@ -55,7 +55,7 @@ defmodule Pleroma.Web.ApiSpec.StatusOperation do "application/json", %Schema{oneOf: [Status, ScheduledStatus]} ), - 422 => Operation.response("Bad Request", "application/json", ApiError) + 422 => Operation.response("Bad Request / MRF Rejection", "application/json", ApiError) } } end |