aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/note.php
diff options
context:
space:
mode:
Diffstat (limited to 'routes/note.php')
-rw-r--r--routes/note.php2
1 files changed, 1 insertions, 1 deletions
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) {