Fixed the display of the received reactions in the message sidebar
authorAlexander Ebert <ebert@woltlab.com>
Sat, 20 Jul 2019 09:05:26 +0000 (11:05 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 20 Jul 2019 09:05:26 +0000 (11:05 +0200)
com.woltlab.wcf/templates/messageSidebar.tpl

index aeac425de8b9f9f84c024e97d40c53bfd1526e76..30641bd2db06ce30c704eda6f9c5abad6b80c818 100644 (file)
@@ -81,9 +81,9 @@
                                <div class="userCredits">
                                        <dl class="plain dataList">
                                                {content}
-                                                       {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && !$isReply}
+                                                       {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && !$isReply && $userProfile->likesReceived}
                                                                <dt><a href="{link controller='User' object=$userProfile}{/link}#likes" class="jsTooltip" title="{lang user=$userProfile}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a></dt>
-                                                               <dd>{#$userProfile->cumulativeLikes}</dd>
+                                                               <dd>{#$userProfile->likesReceived}</dd>
                                                        {/if}
                                                        
                                                        {if MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS && $userProfile->activityPoints}