links to POIs without slugs were always dead because of prefix collision

This commit is contained in:
Laura Klünder 2024-12-19 12:26:18 +01:00
parent 12ab28da65
commit d901b49314
4 changed files with 11 additions and 11 deletions

View file

@ -63,8 +63,8 @@ def locate(instance, interface=None, sudo=False, secret=None, api_secret=None, l
}
if secret and api_secret:
if not secret.startswith('p:'):
secret = 'p:' + secret
if not secret.startswith('m:'):
secret = 'm:' + secret
json['set_position'] = secret
json['secret'] = api_secret