Commit Graph

6 Commits (d2d64d69fc9e93e934970c8e009addaa574486c5)

Author SHA1 Message Date
Joca 7b0528ef36
feat: Add file-based avatar system
- A new `files` table to store metadata about uploaded files, including original name and hash.
- The `users` table is updated to reference a `pfp_file_id` from the new `files` table, removing the insecure `pfp_url` field.
- A new `/file` endpoint and handler (`handlers/file.go`) are created to serve files securely based on their ID, preventing direct file system access.
- Profile editing (`handlers/profile_edit.go` and `templates/pages/profile_edit.html`) is updated to handle file uploads instead of URL inputs.
- The chat feature (`models/chat.go` and `templates/pages/chat.html`) is updated to work with the new file ID system, ensuring avatars are displayed correctly.
Should also fix #68.
2025-06-21 16:21:21 -03:00
BodgeMaster 8b95ec3e38 gitignore: add gitignore 2025-06-15 02:47:16 +02:00
BodgeMaster af91df4986 everything: Delete everything, full project reset. Keep a copy of variable_grabbler in case we ever need it. 2025-06-15 02:25:56 +02:00
BodgeMaster b193cd00bc Stop removing READMEs when building
IIRC, this has been unnecessary since the project switched over to using the build directory

Also got rid of the useless README in /build so it doesn’t appear in the built page
2023-01-07 00:59:21 +01:00
BodgeMaster b9aa1baf9c Exclude build directory 2023-01-07 00:50:50 +01:00
BodgeMaster c63245ff3c ignore nano .swp files 2021-09-03 05:33:11 +02:00