fix: Use list to allow for html formatting

This commit is contained in:
Nathan Woodburn 2025-03-07 15:13:58 +11:00
parent 73a8708b0f
commit aed2cf52b1
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -88,7 +88,7 @@ functions = {
"url": "url":
{ {
"name": "Login URL", "name": "Login URL",
"type": "text" "type": "list"
} }
} }
} }
@ -331,4 +331,4 @@ def edit(params, authentication):
if 'result' not in response: if 'result' not in response:
return {"status": "Error signing message"} return {"status": "Error signing message"}
signature = response["result"] signature = response["result"]
return {"url": f"https://links.hns.au/auth?username={domain}&signature={signature}"} return {"url": [f"<a href=https://links.hns.au/auth?username={domain}&signature={signature} target='_blank'>Edit HNS Links</a>"]}