diff options
author | Phil Hagelberg <phil@hagelb.org> | 2019-10-27 17:53:20 -0700 |
---|---|---|
committer | Phil Hagelberg <phil@hagelb.org> | 2019-11-09 18:06:51 -0800 |
commit | e79d8985ab90bcad33d9ff13c6a16f006c6abac9 (patch) | |
tree | b4f02a03a9feb800e0a2d292fc1790c3fedbbd12 | |
parent | c1fc1399860c57460cee173ce8ddb980aabf10de (diff) | |
download | pleroma-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.ex | 4 |
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") |