Commit Graph

15 Commits

Author SHA1 Message Date
admin f24cab8fb0 getting user; mod: avatar, profileBg, profile now working 2026-04-19 18:27:36 +02:00
admin a47654428c add option for avatar/profilebg change 2026-04-19 00:06:17 +02:00
gitGnome c85c66e43a add dynamic profile update, connection helper, file download metadata
- replace UserSetColor/UserSetPronouns with single UserUpdateProfile that dynamically builds one UPDATE query from UserProfileUpdateList
- add getConnectionWithResponseOnFail helper to deduplicate connection ID parsing and validation across handlers
- rename file.go to attachmentFile.go and update handler names
- GetDownloadUrlAndMetadata now fetches object metadata via StatObject and returns it alongside the presigned URL
- file download endpoint returns JSON with url and originalName
- add description field to user and DB schema
- remove unused ConnectionState variants (GroupFellow, GroupFriend)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 13:28:27 +02:00
admin 84e3f852fe working file sharing 2026-04-16 20:38:16 +02:00
gitGnome f0fdaedd8c idk 2026-04-16 14:23:14 +02:00
gitGnome 6d0eaa92e9 rename postgr fucntions 2026-04-15 14:18:22 +02:00
gitGnome 3c31e82061 add helper function for handling existing file in s3 2026-04-15 14:01:39 +02:00
gitGnome 90018bccdd first esitant check is needed 2026-04-15 10:08:20 +02:00
admin 53c2f71d5d continue minIo, rename convertion methods and http methods 2026-04-14 22:04:12 +02:00
admin 60a02b73c0 add paritional files uploading for minIO 2026-04-14 21:42:22 +02:00
admin 48d3c6f857 add file storage: metadata schema, minio upload/download, content-type extension mapping
- add files_metadata and files_metadata_connections tables with CRUD helpers
- add FileMetadata type and Sha256Hash typedef; replace Media struct
- add minio upload, presigned download URL, and key generation
- fix bucket existence check to use FileStorageBucketName instead of hardcoded "main"
- fix files_metadata_connections table name and trailing comma in DDL
- fix column name original -> name in files_metadata schema
- add canonical MIME-to-extension map with .unk fallback
- add FileDownloadLinkTtl constant (24h)
2026-04-14 18:55:22 +02:00
gitGnome 39a28ee888 idk 2026-04-14 15:58:10 +02:00
gitGnome a020c13394 idk 2026-04-14 14:11:38 +02:00
gitGnome 2500418f80 idk 2026-04-14 13:02:01 +02:00
admin c90c13b468 start minIO, refactored files into packages 2026-04-13 20:22:38 +02:00