From 8fdb287d995bd9d905f2e2e0cc9bc0657b7b3325 Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Fri, 29 Aug 2025 17:22:16 -0500 Subject: [PATCH] Replays: Use loginserver endpoint instead of PHP --- replay.pokemonshowdown.com/src/replays-index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replay.pokemonshowdown.com/src/replays-index.tsx b/replay.pokemonshowdown.com/src/replays-index.tsx index a0ad9c39b..4a7e37e72 100644 --- a/replay.pokemonshowdown.com/src/replays-index.tsx +++ b/replay.pokemonshowdown.com/src/replays-index.tsx @@ -49,7 +49,7 @@ export class SearchPanel extends preact.Component<{ id: string }> { loggedInUserIsSysop = false; sort = 'date'; override componentDidMount() { - if (!Net.defaultRoute) Net(`/check-login.php`).get().then(result => { + if (!Net.defaultRoute) Net(`/api/replays/check-login`).get().then(result => { if (!result.startsWith(']')) return; const [userid, sysop] = result.slice(1).split(','); this.loggedInUser = userid;