don't show deleted toots

This commit is contained in:
fenwick67 2017-05-01 22:30:42 -05:00
parent 749bf78edf
commit 5e1c3e10ac
1 changed files with 7 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function buildUp(jsonObj,opts){
jsonObj.opts = opts||{};
// iterate through the items
jsonObj.items.forEach(function(item){
jsonObj.items = jsonObj.items.filter(function(item){
// get date
item.stringDate = getTimeDisplay(item.date);
@ -146,6 +146,12 @@ function buildUp(jsonObj,opts){
}
});
if (!item.content || item.title.toLowerCase().indexOf('delete') > -1){// item was deleted
return false;
}else{
return true;
}
});
return template(jsonObj);