Collapse multiple identical posts in mention notification.
[Sone.git] / src / main / resources / templates / notify / mentionNotification.html
index 087fc2e..10e9ad3 100644 (file)
@@ -4,7 +4,7 @@
 </div>
 <div class="text">
        <%= Notification.Mention.Text|l10n|html>
-       <%foreach posts post>
+       <%foreach posts post|unique>
                <div class="hidden post-id"><%post.id|html></div>
                <a class="link-<% post.id|html>" href="viewPost.html?post=<% post.id|html>"><% post.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
        <%/foreach>