From 3272de09352d1583ea817187d13a7a548e360296 Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 20 Dec 2024 19:12:12 +0000 Subject: super ultra mega basic global timeline --- routes/note.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/note.php') diff --git a/routes/note.php b/routes/note.php index be7eb25..4e0f867 100644 --- a/routes/note.php +++ b/routes/note.php @@ -6,7 +6,7 @@ use Digitigrade\Router; Router::getInstance()->mount('/post/:id', function (array $args) { $note = Note::find($args['id']); - if ($note == null) { + if ($note == null || $note->deleted) { throw new NotFound("i don't know that note"); } if (!$note->author->isLocal) { -- cgit v1.3