Handle rendering AP issues

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-04-23 09:26:16 +02:00
parent eaadf261ac
commit 2d0abaad4a
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -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")