Render errors in HTML, not with JS.
[akkoma] / lib / pleroma / web / static_fe / static_fe_controller.ex
index 10bd3fecd4ed8ac4ef3420d91c0bebd1c810f352..0be47d6b350a8c2db72a2d821e149baa649b414f 100644 (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