filter out replies

This commit is contained in:
Hongbo Wu
2023-06-21 16:01:09 +08:00
parent a3ad9375bf
commit f0e6458e4a

View File

@ -179,7 +179,10 @@ export class NitterHandler extends ContentHandler {
}
const tweet = parseTweet(item)
tweet && tweets.push(tweet)
// filter out replies
if (tweet && tweet.author.username === username) {
tweets.push(tweet)
}
}
return tweets