forked from AkkomaGang/akkoma
Don't show 404 in static-fe controller unless it's actually not found.
This commit is contained in:
parent
c1fc139986
commit
e79d8985ab
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ def show_notice(conn, %{"notice_id" => notice_id}) do
|
||||||
|> put_view(Pleroma.Web.StaticFE.StaticFEView)
|
|> put_view(Pleroma.Web.StaticFE.StaticFEView)
|
||||||
|> render("notice.html", %{data: data})
|
|> render("notice.html", %{data: data})
|
||||||
else
|
else
|
||||||
_ ->
|
{:error, nil} ->
|
||||||
conn
|
conn
|
||||||
|> put_status(404)
|
|> put_status(404)
|
||||||
|> text("Not found")
|
|> text("Not found")
|
||||||
|
@ -33,7 +33,7 @@ def show_user(conn, %{"username_or_id" => username_or_id}) do
|
||||||
|> put_view(Pleroma.Web.StaticFE.StaticFEView)
|
|> put_view(Pleroma.Web.StaticFE.StaticFEView)
|
||||||
|> render("profile.html", %{data: data})
|
|> render("profile.html", %{data: data})
|
||||||
else
|
else
|
||||||
_ ->
|
{:error, nil} ->
|
||||||
conn
|
conn
|
||||||
|> put_status(404)
|
|> put_status(404)
|
||||||
|> text("Not found")
|
|> text("Not found")
|
||||||
|
|
Loading…
Reference in a new issue