Consolidate images and files

This commit is contained in:
Christoph Hagen
2024-12-09 12:18:55 +01:00
parent 394cf7a2e4
commit 4f08526978
77 changed files with 1970 additions and 1619 deletions

View File

@@ -27,11 +27,11 @@ extension Content {
return nil
}
#warning("Add files path to settings")
return "/files/\(file.uniqueId)"
return "/files/\(file.id)"
}
func image(_ imageId: String) -> ImageResource? {
images.first { $0.id == imageId }
func image(_ imageId: String) -> FileResource? {
files.first { $0.id == imageId }
}
func imageLink(imageId: String) {