From 17f0595b2f066727b38a6ec1c5c5a37211191832 Mon Sep 17 00:00:00 2001 From: Maix0 Date: Thu, 15 Jan 2026 16:14:31 +0100 Subject: [PATCH] fixed ttt history being ALWAYS in the perspective of the logged in user --- frontend/src/pages/tttHistory/tttHistory.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/tttHistory/tttHistory.ts b/frontend/src/pages/tttHistory/tttHistory.ts index 4a0dfc6..259eb9a 100644 --- a/frontend/src/pages/tttHistory/tttHistory.ts +++ b/frontend/src/pages/tttHistory/tttHistory.ts @@ -32,6 +32,7 @@ async function tttHistory(_url: string, args: RouteHandlerParams): Promise You aren\'t logged in ', postInsert: () => { showError("You must be logged in !"); navigateTo("/") } }; } + let targetUserId = args.userid !== 'me' ? args.userid : user.id; let userInfoRes = await client.getUser({ user: args.userid }); if (userInfoRes.kind !== 'success') { @@ -59,9 +60,9 @@ async function tttHistory(_url: string, args: RouteHandlerParams): Promise