This commit is contained in:
@@ -47,11 +47,15 @@ export type GraphqlTweetResult = {
|
|||||||
legacy?: {
|
legacy?: {
|
||||||
screen_name?: string;
|
screen_name?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
profile_image_url_https?: string;
|
||||||
};
|
};
|
||||||
core?: {
|
core?: {
|
||||||
screen_name?: string;
|
screen_name?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
};
|
};
|
||||||
|
avatar?: {
|
||||||
|
image_url?: string;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -263,6 +267,7 @@ export interface TweetData {
|
|||||||
author: {
|
author: {
|
||||||
username: string;
|
username: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
profileImageUrl?: string;
|
||||||
};
|
};
|
||||||
authorId?: string;
|
authorId?: string;
|
||||||
createdAt?: string;
|
createdAt?: string;
|
||||||
|
|||||||
@@ -566,6 +566,7 @@ export function mapTweetResult(
|
|||||||
author: {
|
author: {
|
||||||
username,
|
username,
|
||||||
name: name || username,
|
name: name || username,
|
||||||
|
profileImageUrl: userLegacy?.profile_image_url_https ?? userResult?.avatar?.image_url,
|
||||||
},
|
},
|
||||||
authorId: userId,
|
authorId: userId,
|
||||||
quotedTweet,
|
quotedTweet,
|
||||||
|
|||||||
Reference in New Issue
Block a user