mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-04 10:00:55 +01:00
Fix posts/tweets being undefined
This commit is contained in:
parent
1d3f4584d1
commit
fecac910b8
1 changed files with 1 additions and 2 deletions
|
@ -10,8 +10,7 @@ export const convertToApiUser = (user: GraphQLUser): APIUser => {
|
|||
apiUser.followers = user.legacy.followers_count;
|
||||
apiUser.following = user.legacy.friends_count;
|
||||
apiUser.likes = user.legacy.favourites_count;
|
||||
// @ts-expect-error `tweets` is only part of legacy API
|
||||
apiUser.tweets = user.legacy.statuses_count;
|
||||
apiUser.posts = user.legacy.statuses_count;
|
||||
apiUser.name = user.legacy.name;
|
||||
apiUser.screen_name = user.legacy.screen_name;
|
||||
apiUser.global_screen_name = `${user.legacy.screen_name}@${Constants.TWITTER_GLOBAL_NAME_ROOT}`;
|
||||
|
|
Loading…
Add table
Reference in a new issue