Fix comment rendering in sidebar box
authorMatthias Schmidt <gravatronics@live.com>
Tue, 27 Jun 2017 18:16:11 +0000 (20:16 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 27 Jun 2017 18:16:11 +0000 (20:16 +0200)
See #2222

com.woltlab.wcf/templates/boxSidebarCommentList.tpl

index ab27408037b195376869760c7e19a9083ec13477..d444734a73711a501b9720ceb6139d24b4675291 100644 (file)
@@ -5,7 +5,7 @@
                                <h3><a href="{$boxComment->getLink()}">{$boxComment->title}</a></h3>
                        </div>
                        
-                       <p><small>{@$boxComment->message|newlineToBreak}</small></p>
+                       <p><small>{@$boxComment->getExcerpt(50)}</small></p>
                        <p><small><a href="{link controller='User' object=$boxComment->getUserProfile()}{/link}" class="userLink" data-user-id="{@$boxComment->userID}">{$boxComment->username}</a> - {@$boxComment->time|time}</small></p>
                </li>
        {/foreach}