aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hagelberg <phil@hagelb.org>2019-10-27 17:53:20 -0700
committerPhil Hagelberg <phil@hagelb.org>2019-11-09 18:06:51 -0800
commite79d8985ab90bcad33d9ff13c6a16f006c6abac9 (patch)
treeb4f02a03a9feb800e0a2d292fc1790c3fedbbd12
parentc1fc1399860c57460cee173ce8ddb980aabf10de (diff)
downloadpleroma-e79d8985ab90bcad33d9ff13c6a16f006c6abac9.tar.gz
Don't show 404 in static-fe controller unless it's actually not found.
-rw-r--r--lib/pleroma/web/static_fe/static_fe_controller.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/static_fe/static_fe_controller.ex b/lib/pleroma/web/static_fe/static_fe_controller.ex
index 78cd325c8..8bbd06aa9 100644
--- 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")