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:
parent
fc94651577
commit
fc5adedf0b
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue