diff options
| author | winter | 2025-01-13 18:06:05 +0000 |
|---|---|---|
| committer | winter | 2025-01-13 18:06:05 +0000 |
| commit | fb9efd9f4682f528b1832622d192b9b5544584a9 (patch) | |
| tree | 5d55870b8bb8910183fc7b35220e9ae3f83999d3 /Digitigrade/Model/Note.php | |
| parent | 765bf9729cc31b7ff552922c6363373f218c1f24 (diff) | |
make the interaction buttons actually work
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 7389617..6d83a90 100644 --- a/Digitigrade/Model/Note.php +++ b/Digitigrade/Model/Note.php @@ -115,6 +115,10 @@ class Note extends PushableModel implements TimelineIncludeable { return Interaction::findAllWithTarget($this); } + public function getInteractionsWithAuthor(Actor $author): array { + return Interaction::findAllWhere('author = ? AND target = ? AND deleted = false', [$author->id, $this->id]); + } + protected function getRelevantServers(): array { $recipientActors = match ($this->privacy->scope) { NotePrivacyScope::NONE => [], |
