sharing/get: adjust Content-Disposition default for bday share

This commit is contained in:
Peter Bieringer
2026-03-22 08:06:21 +01:00
parent 1c007ab5d2
commit f144aacc57

View File

@@ -43,7 +43,9 @@ def propose_filename(collection: storage.BaseCollection, share: Union[dict, None
fallback_title = posixpath.basename(collection.path)
suffix = ""
if share and 'Properties' in share and share['Properties'] and "D:displayname" in share['Properties']:
title = share['Properties']["D:displayname"] or fallback_title
title = share['Properties']["D:displayname"]
elif share_bday_automap:
title = fallback_title
else:
title = collection.get_meta("D:displayname") or fallback_title
if title and not title.lower().endswith(suffix.lower()):