Fix file deletion

This commit is contained in:
Christoph Hagen
2025-01-07 14:04:00 +01:00
parent c5a00ef0f8
commit acd0902869
10 changed files with 98 additions and 3 deletions

View File

@ -66,6 +66,11 @@ final class Tag: Item {
func contains(urlComponent: String) -> Bool {
german.urlComponent == urlComponent || english.urlComponent == urlComponent
}
func remove(_ file: FileResource) {
english.remove(linkPreviewImage: file)
german.remove(linkPreviewImage: file)
}
}
extension Tag: LocalizedItem {