merge-requests/30/head
Bob Mottram 2024-08-14 10:28:16 +01:00
parent b67c5b56bd
commit 492042f86a
1 changed files with 1 additions and 2 deletions

View File

@ -37,9 +37,8 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
'application/vcard+xml'
)
if not string_contains(accept_str, vcard_mime_types):
print('WARN: vcard is not of an expected mime type: ' +
accept_str + ' ' + path)
return False
print('Downloading vcard ' + path)
if path.startswith('/@'):
if '/@/' not in path:
path = path.replace('/@', '/users/', 1)