Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Preserve public magic metadata on file copy

AmanRajSinghMourya4cc45b524560
diff --git a/server/pkg/controller/file_copy/file_copy.go b/server/pkg/controller/file_copy/file_copy.go
index 99cf07a080..a52fcfdb74 100644
--- a/server/pkg/controller/file_copy/file_copy.go
+++ b/server/pkg/controller/file_copy/file_copy.go
@@ -56,6 +56,7 @@ func (fci fileCopyInternal) newFile(ownedID int64) ente.File {
File: newFileAttributes,
Thumbnail: newThumbAttributes,
Metadata: fci.SourceFile.Metadata,
+ PubicMagicMetadata: fci.SourceFile.PubicMagicMetadata,
UpdationTime: enteTime.Microseconds(),
IsDeleted: false,
}