Add profileImageUrl to TweetData.author
CI / test (push) Successful in 11m4s

This commit is contained in:
2026-06-26 01:56:14 +09:00
parent 2e293ad65b
commit 9340ed3f47
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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;
+1
View File
@@ -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,