projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1fc139
)
Don't show 404 in static-fe controller unless it's actually not found.
author
Phil Hagelberg
<phil@hagelb.org>
Mon, 28 Oct 2019 00:53:20 +0000
(17:53 -0700)
committer
Phil Hagelberg
<phil@hagelb.org>
Sun, 10 Nov 2019 02:06:51 +0000
(18:06 -0800)
lib/pleroma/web/static_fe/static_fe_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/static_fe/static_fe_controller.ex
b/lib/pleroma/web/static_fe/static_fe_controller.ex
index 78cd325c8ba1a16e806a6021a0a4e4926628aa0a..8bbd06aa9f0f75ce7bce34fccec936e12d1706c6 100644
(file)
--- a/
lib/pleroma/web/static_fe/static_fe_controller.ex
+++ b/
lib/pleroma/web/static_fe/static_fe_controller.ex
@@
-18,7
+18,7
@@
defmodule Pleroma.Web.StaticFE.StaticFEController do
|> put_view(Pleroma.Web.StaticFE.StaticFEView)
|> render("notice.html", %{data: data})
else
-
_
->
+
{:error, nil}
->
conn
|> put_status(404)
|> text("Not found")
@@
-33,7
+33,7
@@
defmodule Pleroma.Web.StaticFE.StaticFEController do
|> put_view(Pleroma.Web.StaticFE.StaticFEView)
|> render("profile.html", %{data: data})
else
-
_
->
+
{:error, nil}
->
conn
|> put_status(404)
|> text("Not found")