fix: tweet not saved

* compare username ignoring case
This commit is contained in:
Hongbo Wu
2023-06-26 18:07:47 +08:00
parent 6d3989e04a
commit 15c964481a

View File

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