diff options
Diffstat (limited to 'Digitigrade/Model/Interaction.php')
| -rw-r--r-- | Digitigrade/Model/Interaction.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Digitigrade/Model/Interaction.php b/Digitigrade/Model/Interaction.php index 43d02a2..dd977fd 100644 --- a/Digitigrade/Model/Interaction.php +++ b/Digitigrade/Model/Interaction.php @@ -97,7 +97,7 @@ class Interaction extends PushableModel implements Notifyable { return sprintf(__('notifications.interaction.' . $this->kind->value . '.title'), $this->author->displayName); } public function getNotificationTitleLink(): ?string { - return '/@/' . $this->target->author->getFullHandle() . '/note/' . $this->target->id; + return $this->target->getLocalUiHref(); } public function getNotificationBody(): ?string { return isset($this->target->summary) ? ('[' . $this->target->summary . ']') : $this->target->plainContent; @@ -106,7 +106,7 @@ class Interaction extends PushableModel implements Notifyable { return $this->author->avatar ?? '/static/default-avatar.png'; } public function getNotificationImageLink(): ?string { - return '/@/' . $this->author->getFullHandle(); + return $this->author->getLocalUiHref(); } public function toJsonReference(): mixed { |
