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 --- Digitigrade/Model/Note.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Digitigrade/Model/Note.php') 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, -- cgit v1.3