diff --git a/extensions/mentions/src/Listener/FormatPostMentions.php b/extensions/mentions/src/Listener/FormatPostMentions.php index 9731303be..efcb36c91 100755 --- a/extensions/mentions/src/Listener/FormatPostMentions.php +++ b/extensions/mentions/src/Listener/FormatPostMentions.php @@ -82,6 +82,7 @@ class FormatPostMentions if ($post && $post->user) { $attributes['displayname'] = $post->user->display_name; } + return $attributes; }); } diff --git a/extensions/mentions/src/Listener/FormatUserMentions.php b/extensions/mentions/src/Listener/FormatUserMentions.php index 83863f0be..653886a8f 100755 --- a/extensions/mentions/src/Listener/FormatUserMentions.php +++ b/extensions/mentions/src/Listener/FormatUserMentions.php @@ -78,6 +78,7 @@ class FormatUserMentions if ($user) { $attributes['displayname'] = $user->display_name; } + return $attributes; }); }