Merge branch 'develop' into refactor/notification_settings
[akkoma] / lib / pleroma / web / mastodon_api / controllers / status_controller.ex
index 12be530c999a94ff3b71ba4653dd4870dd93b489..9bb2ef117b414f15b40ca78fd3e729d5adf25029 100644 (file)
@@ -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)