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