Skip to content

Commit

Permalink
deleting all user retwisted posts when unfollow
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Grim committed Mar 10, 2015
1 parent 64e85c3 commit dd9f6bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/interface_home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit dd9f6bc

Please sign in to comment.