feat: profileStats endpoint for U8 #3003

Merged
Sainan merged 4 commits from AMelonInsideLemon/SpaceNinjaServer:view-stats-u8 into main 2025-11-06 00:17:52 -08:00
No description provided.
AMelonInsideLemon added 1 commit 2025-11-05 08:18:38 -08:00
feat: profileStats endpoint for U8
All checks were successful
Build / build (pull_request) Successful in 1m58s
d479ddd7a0
Owner

Doesn't this introduce an authentication bypass?

Doesn't this introduce an authentication bypass?
AMelonInsideLemon added 2 commits 2025-11-05 09:17:00 -08:00
getFriendsController support for U19.5 and below
All checks were successful
Build / build (pull_request) Successful in 1m11s
0b81b6c68e
Owner

I mean, stats/view.php is generally private information. You're not supposed to be able to view it for another player, right?

I mean, `stats/view.php` is generally **private information**. You're not supposed to be able to view it for another player, right?
Author
Member

At least on U8 game uses /stats/profileStats.php to view friends profile, now game uses /dynamic/getProfileViewingData.php and it returns even more data, so I don't see a problem in that.

At least on U8 game uses `/stats/profileStats.php` to view friends profile, now game uses `/dynamic/getProfileViewingData.php` and it returns even more data, so I don't see a problem in that.
Owner

Oh, I see, our getProfileViewingData implementation does not filter the exposed stats at all. I will track this in a separate issue.

Oh, I see, our `getProfileViewingData` implementation does not filter the exposed stats at all. I will track this in a separate issue.
Sainan reviewed 2025-11-05 10:31:12 -08:00
@@ -6,3 +6,3 @@
const viewController: RequestHandler = async (req, res) => {
const accountId = await getAccountIdForRequest(req);
await getAccountForRequest(req);
Owner

You can remove this for the time being.

You can remove this for the time being.
Sainan marked this conversation as resolved
AMelonInsideLemon added 1 commit 2025-11-05 11:10:37 -08:00
Update viewController.ts
All checks were successful
Build / build (pull_request) Successful in 1m59s
9e8292ad6a
Sainan approved these changes 2025-11-05 12:58:26 -08:00
Sainan merged commit e58655e3f4 into main 2025-11-06 00:17:52 -08:00
Sainan deleted branch view-stats-u8 2025-11-06 00:17:53 -08:00
Sign in to join this conversation.