diff options
| author | winter | 2024-12-23 22:26:46 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 22:26:46 +0000 |
| commit | aafbcc8fc1a07872fffa4d669117f41148e509a8 (patch) | |
| tree | 0db483fc6883be0049590f612be8de9b025d2ab7 /Digitigrade/Model/Note.php | |
| parent | 916d4521cb595493bc5df8b7f9ef52310b6d013a (diff) | |
rename "user" to actor and "post" to note everywhere
Diffstat (limited to 'Digitigrade/Model/Note.php')
| -rw-r--r-- | Digitigrade/Model/Note.php | 6 |
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, |
