Don't show 404 in static-fe controller unless it's actually not found.
This commit is contained in:
parent
c1fc139986
commit
e79d8985ab
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user