Commit c8cf1d57 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

do not expose file paths in exif metadatas

parent 8facc919
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -212,7 +212,11 @@ def file(
        #
        # Slightly different result but much less
        for prop in file_instance.metadataresourcevalue_set.all():
            if prop.metadata.expose:
            if prop.metadata.expose and prop.metadata.title.lower().strip() not in [
                "sourcefile",
                "file:directory",
                "file:filename",
            ]:
                props.append(metadata_resource_value(prop, cache=cache))
        props = sorted(props, key=lambda d: d["meta"]["id"])