yo-ru / gulag-web

The frontend appearance for the osu! server protocol, gulag!
MIT License
18 stars 26 forks source link

Added feature to access a profile page with /u/<safe name> #66

Closed minisbett closed 3 years ago

minisbett commented 3 years ago

Basically if you access /u/ and no database entry to the ID as the user id could be found it tries to find an entry where this ID is the safe name. If an ID was found, it uses that ID to get the user data.

lenforiee commented 3 years ago

I suggest delete one useless query and fetch all data directly from safe name, also there might be a cases when someone make space in their name so i suggest taking safe username maker function from eg gulag and convert the "id" variable to safe, I hope my gibberish makes sense