From dd9f6bcc63d13086b4b63c936974406467e2282b Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Tue, 10 Mar 2015 23:55:29 +0500 Subject: [PATCH] deleting all user retwisted posts when unfollow --- js/interface_home.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/interface_home.js b/js/interface_home.js index 436cca1..6edd06a 100644 --- a/js/interface_home.js +++ b/js/interface_home.js @@ -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(); }); });