From f3e8f9b25fcbcf7e3de25f70ccec005ac2b404de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 16 Jan 2023 11:46:17 -0500 Subject: [PATCH] fix: nested replies not updating when icon is used --- public/src/client/topic/replies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/topic/replies.js b/public/src/client/topic/replies.js index 63f3b3d1b7..72f4ab7980 100644 --- a/public/src/client/topic/replies.js +++ b/public/src/client/topic/replies.js @@ -96,8 +96,8 @@ define('forum/topic/replies', ['forum/topic/posts', 'hooks', 'alerts'], function } if (!avatars.find('[data-uid="' + post.uid + '"]').length && count < 7) { - app.parseAndTranslate('topic', 'posts', { posts: [{ replies: { users: [post.user] } }] }, function (html) { - avatars.prepend(html.find('[component="post/reply-count/avatars"] [component="avatar/picture"]')); + app.parseAndTranslate('topic', 'posts', { posts: [{ replies: { hasMore: false, users: [post.user] } }] }, function (html) { + avatars.prepend(html.find('[component="post/reply-count/avatars"]').html()); }); }