diff options
| author | winter | 2024-12-17 23:05:43 +0000 |
|---|---|---|
| committer | winter | 2024-12-17 23:05:43 +0000 |
| commit | 6f844ff40d936fb6591c2469dd9ff922bc4e575f (patch) | |
| tree | 007dc0372c2c999bdcf6ea1ba80f6eb93a161a7f /Digitigrade/Model/Note.php | |
| parent | 801778a295df2b026391483faa390cf87e68b1ad (diff) | |
implement interactions
Diffstat (limited to 'Digitigrade/Model/Note.php')
| -rw-r--r-- | Digitigrade/Model/Note.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Model/Note.php b/Digitigrade/Model/Note.php index dd66c85..0117a3c 100644 --- a/Digitigrade/Model/Note.php +++ b/Digitigrade/Model/Note.php @@ -105,6 +105,10 @@ class Note extends PushableModel { return self::findAllWhere('author = ?', [$author->id]); } + public function getInteractions(): array { + return Interaction::findAllWithTarget($this); + } + public function jsonSerialize(): array { return [ 'type' => 'note', |
