Render errors in HTML, not with JS.
This commit is contained in:
parent
e27c61218d
commit
b0080fa730
3 changed files with 10 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue