diff --git a/extensions/mentions/src/Listener/FormatUserMentions.php b/extensions/mentions/src/Listener/FormatUserMentions.php index 653054f66..d56ca4121 100755 --- a/extensions/mentions/src/Listener/FormatUserMentions.php +++ b/extensions/mentions/src/Listener/FormatUserMentions.php @@ -75,6 +75,7 @@ class FormatUserMentions $event->xml = Utils::replaceAttributes($event->xml, 'USERMENTION', function ($attributes) use ($post) { $user = $post->mentionsUsers->find($attributes['id']); if ($user) { + $attributes['username'] = $user->username; $attributes['displayname'] = $user->display_name; }