mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-18 10:53:47 +01:00
Moved drivers/guest to fetch
This commit is contained in:
parent
e2a2ef3ec8
commit
0f551437af
1 changed files with 4 additions and 3 deletions
|
@ -32,10 +32,11 @@ export const fetchUsingGuest = async (status: string): Promise<TweetPartial> =>
|
||||||
)
|
)
|
||||||
).json()) as TimelineBlobPartial;
|
).json()) as TimelineBlobPartial;
|
||||||
|
|
||||||
console.log(conversation);
|
|
||||||
|
|
||||||
const tweet = conversation?.globalObjects?.tweets?.[status] || {};
|
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] || {};
|
tweet.user = conversation?.globalObjects?.users?.[tweet.user_id_str] || {};
|
||||||
|
|
||||||
return tweet;
|
return tweet;
|
Loading…
Add table
Reference in a new issue