mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
deleting all user retwisted posts when unfollow
This commit is contained in:
parent
64e85c3601
commit
dd9f6bcc63
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user