don't show deleted toots

This commit is contained in:
fenwick67 2017-05-01 22:30:42 -05:00
parent 749bf78edf
commit 5e1c3e10ac

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);