diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-02 16:06:19 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-09-02 16:09:11 +0300 |
commit | 4f64ed7d4aaafba60b9501ffbb0becaff646b2eb (patch) | |
tree | bacd9b9fef9674a123739e2aa40f665f589ac353 /lib/Notification/Notifier.php | |
parent | 8b90a98e2702bc04b0e0805cc0ead702d4cddf87 (diff) |
Use the new rich object type guest
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification/Notifier.php')
-rw-r--r-- | lib/Notification/Notifier.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 599fdd694..db44a2256 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -238,7 +238,7 @@ class Notifier implements INotifier { $placeholders = $replacements = []; foreach ($message->getMessageParameters() as $placeholder => $parameter) { $placeholders[] = '{' . $placeholder . '}'; - if ($parameter['type'] === 'user') { + if ($parameter['type'] === 'user' || $parameter['type'] === 'guest') { $replacements[] = '@' . $parameter['name']; } else { $replacements[] = $parameter['name']; @@ -327,7 +327,7 @@ class Notifier implements INotifier { } return [ - 'type' => 'highlight', + 'type' => 'guest', 'id' => $actorId, 'name' => $name, ]; |