Render errors in HTML, not with JS.

This commit is contained in:
Phil Hagelberg 2019-11-05 22:00:19 -08:00
commit b0080fa730
3 changed files with 10 additions and 3 deletions

View file

@ -78,7 +78,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
_ ->
conn
|> put_status(404)
|> render_error(:not_found, "Notice not found")
|> render("error.html", %{message: "Post not found.", meta: ""})
end
end
@ -108,7 +108,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
_ ->
conn
|> put_status(404)
|> render_error(:not_found, "User not found")
|> render("error.html", %{message: "User not found.", meta: ""})
end
end