aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/note.php
diff options
context:
space:
mode:
authorwinter2024-12-23 22:26:46 +0000
committerwinter2024-12-23 22:26:46 +0000
commitaafbcc8fc1a07872fffa4d669117f41148e509a8 (patch)
tree0db483fc6883be0049590f612be8de9b025d2ab7 /routes/note.php
parent916d4521cb595493bc5df8b7f9ef52310b6d013a (diff)
rename "user" to actor and "post" to note everywhere
Diffstat (limited to 'routes/note.php')
-rw-r--r--routes/note.php4
1 files changed, 2 insertions, 2 deletions
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);
});