Commit Graph

6 Commits

Author SHA1 Message Date
IRHM 4cc9bd3edb make image module way more robust
- Create a better (more) re-usable flow for downloading images to disk and inserting images into the db
- Validate images properly by reading them fully and using DecodeConfig
- Fix some security issues by re-encoding images
- Always outputs one format `jpeg`, which keeps everything "normalized" and adds compression to images (mainly user uploads which might be big).
2026-07-10 20:30:23 +00:00
IRHM 4a922df7e4 user->UploadUserAvatar: Replace fatal log with err response 2026-03-01 21:03:45 +00:00
IRHM 2e53997f9e (refactor) Move db from service function parameters to service structs
Now that we have everything encapsulated in Services, we can move the db parameters of each function into the service struct itself which:
1. Simplified calling and reduces us passing around the db in random funcs that just pass it to a service func
2. probably other stuff
3. looks nicer now
2025-11-07 00:46:07 +00:00
IRHM 1a6aa30d67 move image, task, job mods up a folder
because this differenciates them better from the more user-facing features inside the 'features' folder.
2025-10-26 18:03:39 +00:00
IRHM 8a271122e9 servicize user 2025-10-26 17:29:47 +00:00
IRHM 8f2a76e9a8 (wip) server restructure/refactor 2025-10-24 18:37:20 +01:00