From e25177df514ececaafee3f1ac8504709bc735044 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sat, 21 Feb 2026 12:32:00 -0700 Subject: [PATCH] Oh forgot about this --- src/index.ts | 5 +++++ src/routes/comments/account/history/get.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 126e3dc..fd85606 100644 --- a/src/index.ts +++ b/src/index.ts @@ -154,6 +154,11 @@ app.get( description: 'The page you want to get, starts from `0`. Default is `0`.' }) + ), + mode: t.Optional( + t.Union([t.Literal('recent'), t.Literal('top')], { + description: 'Default is `recent`.' + }) ) }) } diff --git a/src/routes/comments/account/history/get.ts b/src/routes/comments/account/history/get.ts index 56ce732..e992b26 100644 --- a/src/routes/comments/account/history/get.ts +++ b/src/routes/comments/account/history/get.ts @@ -5,6 +5,7 @@ import { Context } from 'elysia' export const handler = async (handler: Context) => { const id = handler.query.id const page = handler.query.page + const mode = handler.query.mode const request = await axios.post( 'https://www.boomlings.com/database/getGJCommentHistory.php', @@ -13,7 +14,7 @@ export const handler = async (handler: Context) => { binaryVersion: '45', page: page ?? '0', secret: 'Wmfd2893gb7', - mode: '1', + mode: mode ? (mode == 'recent' ? '0' : '1') : '0', //Don't worry about it userID: id }), {