diff options
| author | winter | 2025-01-26 19:47:22 +0000 |
|---|---|---|
| committer | winter | 2025-01-26 19:47:22 +0000 |
| commit | 7d3f35b1895dd3fe08af0f5fe403ff339acd2456 (patch) | |
| tree | 26c59b9b18793f9678cc115420762aa7695c2071 /Digitigrade/Model/Note.php | |
| parent | df5ead7bd4adac405811b91fed1e5f0b3775206b (diff) | |
send desktop notifications
Diffstat (limited to 'Digitigrade/Model/Note.php')
| -rw-r--r-- | Digitigrade/Model/Note.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |
