deleting all user retwisted posts when unfollow

This commit is contained in:
Simon Grim 2015-03-10 23:55:29 +05:00
parent 64e85c3601
commit dd9f6bcc63

View File

@ -148,8 +148,8 @@ var InterfaceFunctions = function()
.on("eventUnfollow", function(e, user) {
$(".following-count").text(followingUsers.length-1);
$('.wrapper .postboard .post').each( function() {
if ($(this).find('[data-screen-name="'+user+'"]').length
&& (!$(this).find(".post-retransmited-by").text() || $(this).find(".post-retransmited-by").text() == '@'+user))
if (($(this).find('[data-screen-name="'+user+'"]').length && !$(this).find(".post-retransmited-by").text())
|| $(this).find(".post-retransmited-by").text() == '@'+user)
$( this ).remove();
});
});