Closed minisbett closed 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
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.