remove tweets with empty content

This commit is contained in:
Vincent Liao
2022-07-23 07:54:27 +07:00
parent 6e699a857e
commit 8d0176add3

View File

@@ -48,7 +48,7 @@ export async function get() {
// sometimes event returns undefined...
if (event) {
if (event.created_at < Date.now() / 1000) {
if (event.created_at < Date.now() / 1000 && event.content != "") {
event.relay = relays[relayIndex];
events.push(event);
}