From af979f20ffae54dad7dbfea1e19f3a8a7cfb7825 Mon Sep 17 00:00:00 2001 From: Matteo Contrini Date: Wed, 10 Jun 2020 02:13:24 +0200 Subject: [PATCH] Always show replies list on posts (#47) Previously, if there was a single reply and it was adjacent to the post it wasn't shown. See discussion on Discuss: https://discuss.flarum.org/d/23666-flarum-010-beta13-released/75 --- extensions/mentions/js/src/forum/addMentionedByList.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/extensions/mentions/js/src/forum/addMentionedByList.js b/extensions/mentions/js/src/forum/addMentionedByList.js index 6a39a99cb..ada296a3f 100644 --- a/extensions/mentions/js/src/forum/addMentionedByList.js +++ b/extensions/mentions/js/src/forum/addMentionedByList.js @@ -15,12 +15,6 @@ export default function addMentionedByList() { const replies = post.mentionedBy(); if (replies && replies.length) { - // If there is only one reply, and it's adjacent to this post, we don't - // really need to show the list. - if (replies.length === 1 && replies[0].number() === post.number() + 1) { - return; - } - const hidePreview = () => { this.$('.Post-mentionedBy-preview') .removeClass('in')