From aafbcc8fc1a07872fffa4d669117f41148e509a8 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 23 Dec 2024 22:26:46 +0000 Subject: rename "user" to actor and "post" to note everywhere --- routes/note.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/note.php') diff --git a/routes/note.php b/routes/note.php index 4e0f867..071c86c 100644 --- a/routes/note.php +++ b/routes/note.php @@ -4,13 +4,13 @@ use Digitigrade\HttpResponseStatus\NotFound; use Digitigrade\Model\Note; use Digitigrade\Router; -Router::getInstance()->mount('/post/:id', function (array $args) { +Router::getInstance()->mount('/note/:id', function (array $args) { $note = Note::find($args['id']); if ($note == null || $note->deleted) { throw new NotFound("i don't know that note"); } if (!$note->author->isLocal) { - throw new NotFound("i don't want to tell you about non local posts sorry"); + throw new NotFound("i don't want to tell you about non local notes sorry"); } json_response($note); }); -- cgit v1.3