feat: profileStats endpoint for U8 #3003
Reference in New Issue
Block a user
Delete Branch "AMelonInsideLemon/SpaceNinjaServer:view-stats-u8"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Doesn't this introduce an authentication bypass?
I mean,
stats/view.phpis generally private information. You're not supposed to be able to view it for another player, right?At least on U8 game uses
/stats/profileStats.phpto view friends profile, now game uses/dynamic/getProfileViewingData.phpand it returns even more data, so I don't see a problem in that.Oh, I see, our
getProfileViewingDataimplementation does not filter the exposed stats at all. I will track this in a separate issue.@@ -6,3 +6,3 @@const viewController: RequestHandler = async (req, res) => {const accountId = await getAccountIdForRequest(req);await getAccountForRequest(req);You can remove this for the time being.