links to POIs without slugs were always dead because of prefix collision
This commit is contained in:
parent
12ab28da65
commit
d901b49314
4 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue