From 39a28ee888e461b34dd9a9a2d0cc094e8d33e155 Mon Sep 17 00:00:00 2001 From: gitGnome Date: Tue, 14 Apr 2026 15:58:10 +0200 Subject: [PATCH] idk --- packages/minio/minio.go | 6 +++--- packages/types/types.go | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/minio/minio.go b/packages/minio/minio.go index 077d368..a2c2107 100644 --- a/packages/minio/minio.go +++ b/packages/minio/minio.go @@ -36,9 +36,9 @@ func MinInit() { } } -func putFile(ctx context.Context, key string, reader io.Reader, size uint32, contentType string, meta map[string]string) error { +func putFile(ctx context.Context, key string, reader io.Reader, size uint32, contentType string) error { dbConn.PutObject(ctx, globals.FileStorageBucketName, key, reader, int64(size), minio.PutObjectOptions{ - ContentType: contentType, - UserMetadata: meta, + ContentType: contentType, }) + } diff --git a/packages/types/types.go b/packages/types/types.go index ca56d61..90a0cb0 100644 --- a/packages/types/types.go +++ b/packages/types/types.go @@ -103,5 +103,8 @@ type WsAuthMessage struct { Error string `json:"error"` } -type Metadata struct { +type Media struct { + Hash string + Owner uint32 + CreatedAt time.Time }