don't show deleted toots
This commit is contained in:
parent
749bf78edf
commit
5e1c3e10ac
|
@ -77,7 +77,7 @@ function buildUp(jsonObj,opts){
|
||||||
jsonObj.opts = opts||{};
|
jsonObj.opts = opts||{};
|
||||||
|
|
||||||
// iterate through the items
|
// iterate through the items
|
||||||
jsonObj.items.forEach(function(item){
|
jsonObj.items = jsonObj.items.filter(function(item){
|
||||||
|
|
||||||
// get date
|
// get date
|
||||||
item.stringDate = getTimeDisplay(item.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);
|
return template(jsonObj);
|
||||||
|
|
Loading…
Reference in New Issue