1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 10:11:43 +02:00

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
This commit is contained in:
Matteo Contrini
2020-06-10 02:13:24 +02:00
committed by GitHub
parent f8d1e2b22e
commit af979f20ff

View File

@@ -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')