mirror of
https://github.com/fenwick67/mastofeed
synced 2024-12-23 07:38:10 +01:00
fix an edge case where username was "delete"
This commit is contained in:
parent
5e1c3e10ac
commit
85d65f1c56
@ -83,6 +83,9 @@ function buildUp(jsonObj,opts){
|
|||||||
item.stringDate = getTimeDisplay(item.date);
|
item.stringDate = getTimeDisplay(item.date);
|
||||||
|
|
||||||
item.content = getH(item,'atom:content');
|
item.content = getH(item,'atom:content');
|
||||||
|
if (!item.content ){// item was deleted
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// make anchor tags have the "_top" target
|
// make anchor tags have the "_top" target
|
||||||
item.content = item.content.replace(/\<\s*a\s*/ig,'<a target="_top"');
|
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 true;
|
||||||
return false;
|
|
||||||
}else{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user