From fb9efd9f4682f528b1832622d192b9b5544584a9 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 13 Jan 2025 18:06:05 +0000 Subject: make the interaction buttons actually work --- Digitigrade/Model/Note.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Digitigrade/Model/Note.php') 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 => [], -- cgit v1.3