Team-VoW / VoicesOfWynn-Website

Public website for the Minecraft mod "Voices of Wynn"
4 stars 4 forks source link

Fix of credits and administration pages returning 500 HTTP error after introduction of the user.discord_id column #102

Closed ShadyMedic closed 1 year ago

ShadyMedic commented 1 year ago

The discord_id column is now set to BIGINT in the database and the default value in the User model that was causing the 500 error is now set to null (was '').

Also, a hard-to-find bug that was causing the relative path to all avatar images to be duplicated (for example /dynamic/avatars/dynamic/avatars/2.png) was fixed (our anti-XSS sanitiser was the culprit).

Fix has already been deployed (or more accurately, I was fixing it on production again...)