remove classes from notices incorrectly marked as unrepeated

This commit is contained in:
Hannes Mannerheim 2015-12-01 09:13:59 +01:00
parent ffbeaf309c
commit 7fc8daac3b

View File

@ -674,6 +674,12 @@ function searchForUpdatedNoticeData(obj) {
var streamItemToHide = $('.stream-item[data-uri="' + uriToHide + '"]');
slideUpAndRemoveStreamItem(streamItemToHide);
}
// if this is not a delete notice it means the notice exists and is not deleted,
// correct any notices that are marked as unrepeated, they might have
// been marked like that by mistake (i.e. a bug...)
else if(streamItemFoundInFeed.hasClass('unrepeated')) {
streamItemFoundInFeed.removeClass('unrepeated always-hidden');
}
// ordinary notices
else if(streamItemFoundInFeed.length>0) {