From d8c1c983297aef389e9e1335c23698dd31b78e82 Mon Sep 17 00:00:00 2001 From: Zed Date: Sat, 22 Aug 2026 20:10:35 +0700 Subject: [PATCH] Use UserTweetsAndReplies for cookie sessions Fixes #1425 --- src/api.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api.nim b/src/api.nim index 76949c7..1133b9e 100644 --- a/src/api.nim +++ b/src/api.nim @@ -33,7 +33,10 @@ proc userTweetsUrl(id: string; cursor: string): ApiReq = return apiReq(graphUserTweetsV2, restIdVars % [id, cursor, "20"], userTweetsFieldToggles) proc userTweetsAndRepliesUrl(id: string; cursor: string): ApiReq = - return apiReq(graphUserTweetsAndRepliesV2, restIdVars % [id, cursor, "20"], userTweetsFieldToggles, skipTid=true) + result = ApiReq( + cookie: apiUrl(graphUserTweetsAndReplies, userTweetsAndRepliesVars % [id, cursor], userTweetsFieldToggles), + oauth: apiUrl(graphUserTweetsAndRepliesV2, restIdVars % [id, cursor, "20"], userTweetsFieldToggles, skipTid=true) + ) proc tweetDetailUrl(id, cursor: string; mode = Relevance): ApiReq = return apiReq(graphTweet, tweetVars % [id, cursor, $mode])