1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00

Handle 406 Not acceptable when asking for JSON on an AP entity better

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-04-21 10:47:32 +02:00
parent fc94651577
commit fc5adedf0b
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -43,6 +43,10 @@ defmodule Mobilizon.Web.ErrorView do
}
end
def render("406.json", _assigns) do
%{msg: "Not acceptable"}
end
def render("500.html", assigns) do
Mobilizon.Config.instance_config()
|> Keyword.get(:default_language, "en")