mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +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:
@@ -15,12 +15,6 @@ export default function addMentionedByList() {
|
|||||||
const replies = post.mentionedBy();
|
const replies = post.mentionedBy();
|
||||||
|
|
||||||
if (replies && replies.length) {
|
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 = () => {
|
const hidePreview = () => {
|
||||||
this.$('.Post-mentionedBy-preview')
|
this.$('.Post-mentionedBy-preview')
|
||||||
.removeClass('in')
|
.removeClass('in')
|
||||||
|
Reference in New Issue
Block a user