Node.js based forum software built for the modern web
fix: #12062, relax blockquote selector
Barış Soner Uşaklı99bdad809189
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.jsindex f8ae9a49ea..cc4f4bda3d 100644--- a/public/src/client/topic/posts.js+++ b/public/src/client/topic/posts.js@@ -439,8 +439,10 @@ define('forum/topic/posts', [}Posts.addBlockquoteEllipses = function (posts) {- const blockquotes = posts.find('[component="post/content"] > blockquote > blockquote');- blockquotes.each(function () {+ const rootBlockQuotes = posts.find('[component="post/content"] blockquote')+ .filter((i, el) => !$(el).parent().is('blockquote'));+ const nestedBlockQuote = rootBlockQuotes.find('>blockquote');+ nestedBlockQuote.each(function () {const $this = $(this);if ($this.find(':hidden:not(br)').length && !$this.find('.toggle').length) {$this.append('<i class="d-inline-block fa fa-angle-down pointer toggle py-1 px-3 border text-bg-light"></i>');