fix an edge case where username was "delete"

This commit is contained in:
fenwick67 2017-05-01 22:34:38 -05:00
parent 5e1c3e10ac
commit 85d65f1c56
1 changed files with 4 additions and 5 deletions

View File

@ -83,6 +83,9 @@ function buildUp(jsonObj,opts){
item.stringDate = getTimeDisplay(item.date);
item.content = getH(item,'atom:content');
if (!item.content ){// item was deleted
return false;
}
// make anchor tags have the "_top" target
item.content = item.content.replace(/\<\s*a\s*/ig,'<a target="_top"');
@ -146,11 +149,7 @@ function buildUp(jsonObj,opts){
}
});
if (!item.content || item.title.toLowerCase().indexOf('delete') > -1){// item was deleted
return false;
}else{
return true;
}
return true;
});