From 1df69f94de8fa74fe589ee4d1bcd480a39b4c009 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 4 Sep 2024 16:11:14 +0200 Subject: [PATCH] expand.js: fix #191 --- js/expand.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/expand.js b/js/expand.js index ade18be3..8727ea91 100644 --- a/js/expand.js +++ b/js/expand.js @@ -35,7 +35,8 @@ $(document).ready(function() { if (lastExpanded) { $(this).addClass('expanded').insertAfter(lastExpanded).before('
'); } else { - $(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('
'); + let opBr = thread.find('div.post').first().next(); + $(this).addClass('expanded').insertAfter(opBr).after('
'); } lastExpanded = $(this); $(document).trigger('new_post', this);