/notice/:id - send the FE index even if 404
this allows to open private activities by URL when you are logged in, and to let the FE display a 404 page
This commit is contained in:
parent
16ab1437d6
commit
71bb90073b
2 changed files with 7 additions and 4 deletions
|
|
@ -166,10 +166,13 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
end
|
||||
else
|
||||
{:public?, false} ->
|
||||
{:error, :not_found}
|
||||
conn
|
||||
|> put_status(404)
|
||||
|> Fallback.RedirectController.redirector(nil, 404)
|
||||
|
||||
{:activity, nil} ->
|
||||
{:error, :not_found}
|
||||
conn
|
||||
|> Fallback.RedirectController.redirector(nil, 404)
|
||||
|
||||
e ->
|
||||
e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue