aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/Model/Note.php
diff options
context:
space:
mode:
Diffstat (limited to 'Digitigrade/Model/Note.php')
-rw-r--r--Digitigrade/Model/Note.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Digitigrade/Model/Note.php b/Digitigrade/Model/Note.php
index 105f475..37ddff3 100644
--- a/Digitigrade/Model/Note.php
+++ b/Digitigrade/Model/Note.php
@@ -59,7 +59,7 @@ class Note extends PushableModel {
$note->privacy->indexable = $indexable;
$note->save();
- $note->uri = path_to_uri("/post/$note->id");
+ $note->uri = path_to_uri("/note/$note->id");
$note->save();
return $note;
@@ -137,13 +137,13 @@ class Note extends PushableModel {
if ($this->deleted) {
return [
'type' => 'tombstone',
- 'self' => path_to_uri("/post/$this->id"),
+ 'self' => path_to_uri("/note/$this->id"),
'previousType' => 'note'
];
}
return [
'type' => 'note',
- 'self' => path_to_uri("/post/$this->id"),
+ 'self' => path_to_uri("/note/$this->id"),
'created' => $this->created->format('c'),
'modified' => $this->modified?->format('c'),
'author' => $this->author->uri,