hide notices in cache from blocked users

This commit is contained in:
Hannes Mannerheim 2015-12-03 11:29:08 +01:00
parent 7fc8daac3b
commit 71e9014bcd

View File

@ -711,6 +711,13 @@ function setNewCurrentStream(streamObject,setLocation,fallbackId,actionOnSuccess
}); });
} }
// hide all notices from blocked users
if(typeof window.allBlocking != 'undefined') {
$.each(window.allBlocking,function(){
oldStreamState.find('strong.name[data-user-id="' + this + '"]').closest('.stream-item').addClass('profile-blocked-by-me');
});
}
// show full notice text for all cached notices, if we have it in cache // show full notice text for all cached notices, if we have it in cache
$.each(oldStreamState.children('.stream-item'),function(){ $.each(oldStreamState.children('.stream-item'),function(){
getFullUnshortenedHtmlForQueet($(this),true); getFullUnshortenedHtmlForQueet($(this),true);