Browse Source

deleting all user retwisted posts when unfollow

master
Simon Grim 10 years ago
parent
commit
dd9f6bcc63
  1. 4
      js/interface_home.js

4
js/interface_home.js

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

Loading…
Cancel
Save