diff --git a/lib/routes/twitter/api/web-api/api.ts b/lib/routes/twitter/api/web-api/api.ts index 6226a2e067e1db..f5d6f3be2c4795 100644 --- a/lib/routes/twitter/api/web-api/api.ts +++ b/lib/routes/twitter/api/web-api/api.ts @@ -100,17 +100,16 @@ const getUserMedia = (id: string, params?: Record) => const getUserLikes = (id: string, params?: Record) => cacheTryGet(id, params, async (id, params = {}) => gatherLegacyFromData( - await paginationTweets( - 'Likes', - id, - { - ...params, - includeHasBirdwatchNotes: false, - includePromotedContent: false, - withBirdwatchNotes: false, - withVoice: false, - withV2Timeline: true, - }))); + await paginationTweets('Likes', id, { + ...params, + includeHasBirdwatchNotes: false, + includePromotedContent: false, + withBirdwatchNotes: false, + withVoice: false, + withV2Timeline: true, + }) + ) + ); const getUserTweet = (id: string, params?: Record) => cacheTryGet(id, params, async (id, params = {}) => diff --git a/lib/routes/twitter/api/web-api/constants.ts b/lib/routes/twitter/api/web-api/constants.ts index 3ebf5c36952b5f..f0500752ea5b47 100644 --- a/lib/routes/twitter/api/web-api/constants.ts +++ b/lib/routes/twitter/api/web-api/constants.ts @@ -88,7 +88,7 @@ const gqlFeatures = { ListLatestTweetsTimeline: gqlFeatureFeed, HomeTimeline: gqlFeatureFeed, TweetDetail: TweetDetailFeatures, - Likes: gqlFeatureFeed + Likes: gqlFeatureFeed, }; const timelineParams = {