From 7d3f35b1895dd3fe08af0f5fe403ff339acd2456 Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 26 Jan 2025 19:47:22 +0000 Subject: send desktop notifications --- Digitigrade/Model/Note.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Digitigrade/Model/Note.php') diff --git a/Digitigrade/Model/Note.php b/Digitigrade/Model/Note.php index 017cd3e..7da6d8e 100644 --- a/Digitigrade/Model/Note.php +++ b/Digitigrade/Model/Note.php @@ -204,7 +204,7 @@ class Note extends PushableModel implements TimelineIncludeable, Notifyable { return '/@/' . $this->author->getFullHandle() . '/note/' . $this->id; } public function getNotificationBody(): ?string { - return $this->plainContent; + return isset($this->summary) ? "[$this->summary]" : $this->plainContent; } public function getNotificationImageUrl(): ?string { return $this->author->avatar ?? '/static/default-avatar.png'; -- cgit v1.3