Commit Graph

15 Commits

Author SHA1 Message Date
admin df1e969d49 revork structures for hub 2026-04-25 16:04:53 +02:00
gitGnome 635139aad2 idk how to plan this out 2026-04-24 15:34:58 +02:00
admin 8aaa27a6dc complete hub save endpoint 2026-04-23 20:07:09 +02:00
admin c0d7e53884 add hubs create in http 2026-04-23 18:14:05 +02:00
admin 8a66a905cb add configs from file, continue develpoment on hubs 2026-04-23 14:34:47 +02:00
admin 35827f7214 create db structure for hubs 2026-04-22 22:15:34 +02:00
admin 422c4eb419 update naming of functions, add option to get count of unread messages of user 2026-04-21 19:50:14 +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 fcda29a66b rename file_metadata_connections to file_connections 2026-04-15 07:42:14 +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
admin c90c13b468 start minIO, refactored files into packages 2026-04-13 20:22:38 +02:00