Apply the “user online” formatting to mentions
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Mar 2022 13:37:45 +0000 (14:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Mar 2022 13:37:45 +0000 (14:37 +0100)
See https://www.woltlab.com/community/thread/294551-fehlende-benutzer-online-markierung-in-erw%C3%A4hnungen/

com.woltlab.wcf/templates/userBBCodeTag.tpl

index 6c14c28ab9a9ddca1d13911c98078a8c725c3435..dbe32b29d2a41c5719cef2f17a7ea824a4437370 100644 (file)
@@ -2,5 +2,5 @@
        {* user no longer exists, use plain output rather than using a broken link *}
        @{$username}{* no newline after the tag
 *}{else}
-       <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="userMention userLink" data-object-id="{@$userProfile->userID}">{$userProfile->username}</a>{* no newline after the tag
+       <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="userMention userLink" data-object-id="{@$userProfile->userID}">{@$userProfile->getFormattedUsername()}</a>{* no newline after the tag
 *}{/if}