forked from sam/fedifeed
don't show deleted toots
This commit is contained in:
parent
749bf78edf
commit
5e1c3e10ac
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue