This commit is contained in:
Hongbo Wu 2022-10-08 09:28:50 +08:00
parent 87361a9273
commit 06c1e09505

View file

@ -160,7 +160,10 @@ export class TwitterHandler extends ContentHandler {
const tweets = [tweet]
// check if tweet is a thread
const thread = await getTweetThread(tweetData.conversation_id, author.username)
const thread = await getTweetThread(
tweetData.conversation_id,
author.username
)
if (thread.meta.result_count > 0) {
// tweets are in reverse chronological order in the thread
for (const t of thread.data.reverse()) {