diff --git a/js/interface_common.js b/js/interface_common.js
index 01b0049..755d989 100644
--- a/js/interface_common.js
+++ b/js/interface_common.js
@@ -2780,7 +2780,16 @@ function initInterfaceCommon() {
$('#post-template.module.post').on('click', function(event) {
if (event.button === 0 && window.getSelection() == 0)
postExpandFunction(event, $(this));
- });
+ })
+ .find('.new-replies-available button').hide()
+ .on('click', function (event) {
+ event.stopPropagation();
+ $(event.target).hide()
+ .closest('li.post').next('.post-replies').find('.post.pending')
+ .removeClass('pending').slideDown('fast')
+ ;
+ })
+ ;
$('.post-area-new')
.on('click', function(e) {composeNewPost(e, $(this));})
.clickoutside(unfocusPostAreaNew)
diff --git a/js/twister_actions.js b/js/twister_actions.js
index 5010f18..6388898 100644
--- a/js/twister_actions.js
+++ b/js/twister_actions.js
@@ -640,6 +640,51 @@ function queryProcess(req, res) {
$.MAL.showMentions(defaultScreenName);
}).bind({req: req})
});
+ for (var i = 0; i < twister.res[req].twists.pending.length; i++) {
+ var twist = twister.res[req].twists.cached[twister.res[req].twists.pending[i]];
+ if (!twist.userpost.reply) // not '|| twist.userpost.reply.n !== defaultScreenName' too because a reply twist can be a bit deeper than a twist of the current user
+ continue;
+
+ var postDataElem = getElem('.expanded-post .post-data' // FIXME need to rewrite the appending of .post-replies to do it for not expanded twists too
+ + '[data-screen-name=\'' + twist.userpost.reply.n + '\']'
+ + '[data-id=\'' + twist.userpost.reply.k + '\']');
+
+ if (!postDataElem.length)
+ continue;
+
+ for (var k = 0, twistElem = undefined; k < postDataElem.length; k++) {
+ var formerPostElem = postDataElem.eq(k).closest('li.post');
+ if (!formerPostElem.next().hasClass('post-replies'))
+ var containerElem = $('