From 6f8e7343e66c35a518a807f9e1272f6813a450a3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 4 May 2017 14:08:18 -0400 Subject: [PATCH] fix for "invalid date" re:threading when replying to yourself --- public/src/client/topic/replies.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/src/client/topic/replies.js b/public/src/client/topic/replies.js index bdb2cc1519..961d57a927 100644 --- a/public/src/client/topic/replies.js +++ b/public/src/client/topic/replies.js @@ -86,10 +86,14 @@ define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], var countEl = replyCount.find('[component="post/reply-count/text"]'); var avatars = replyCount.find('[component="post/reply-count/avatars"]'); var count = Math.max(0, parseInt(countEl.attr('data-replies'), 10) + inc); + var timestamp = replyCount.find('.timeago').attr('title', post.timestampISO); + countEl.attr('data-replies', count); replyCount.toggleClass('hidden', !count); countEl.translateText('[[topic:replies_to_this_post, ' + count + ']]'); avatars.addClass('hasMore'); + + timestamp.timeago(); } return Replies;