diff --git a/src/drivers/guest.ts b/src/fetch.ts similarity index 90% rename from src/drivers/guest.ts rename to src/fetch.ts index d27da3f..a36313a 100644 --- a/src/drivers/guest.ts +++ b/src/fetch.ts @@ -32,10 +32,11 @@ export const fetchUsingGuest = async (status: string): Promise => ) ).json()) as TimelineBlobPartial; - console.log(conversation); - const tweet = conversation?.globalObjects?.tweets?.[status] || {}; - + /* + With v2 conversation API we re-add the user object ot the tweet because + Twitter stores it separately in the conversation API. + */ tweet.user = conversation?.globalObjects?.users?.[tweet.user_id_str] || {}; return tweet;