sharing: fix get request on single items with bday conversion
This commit is contained in:
@@ -497,6 +497,9 @@ class BaseSharing:
|
||||
logger.info("sharing/%s: resolved path %r->%r, user %r->%r not enabled by user", "map", path, result['PathMapped'], user, result['Owner'])
|
||||
return {'error': 'map-not-enabled'}
|
||||
|
||||
if result['Conversion'] == "bday" and result['PathMapped'].endswith(".ics"):
|
||||
result['PathMapped'] = result['PathMapped'].removesuffix(".ics") + ".vcf"
|
||||
|
||||
logger.info("sharing/%s: resolved path %r->%r, user %r->%r, Permissions=%r Conversion=%r", "map", path, result['PathMapped'], user, result['Owner'], result['Permissions'], result['Conversion'])
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user