Handle rendering AP issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
eaadf261ac
commit
2d0abaad4a
|
@ -51,6 +51,10 @@ defmodule Mobilizon.Web.ErrorView do
|
||||||
render("500.html", assigns)
|
render("500.html", assigns)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def render("500.activity-json", assigns) do
|
||||||
|
render("500.html", assigns)
|
||||||
|
end
|
||||||
|
|
||||||
def render("500.html", assigns) do
|
def render("500.html", assigns) do
|
||||||
Mobilizon.Config.instance_config()
|
Mobilizon.Config.instance_config()
|
||||||
|> Keyword.get(:default_language, "en")
|
|> Keyword.get(:default_language, "en")
|
||||||
|
|
Loading…
Reference in a new issue