feat: Add signal to socials list

This commit is contained in:
2024-04-16 12:24:10 +10:00
parent 3f1225a03a
commit 61d33381e8
8 changed files with 69 additions and 10 deletions

View File

@@ -85,7 +85,7 @@ def wallet(path):
resp.set_cookie('HNS', address, max_age=604800)
return resp
if path == ".domains":
if path[0] == ".":
return send_from_directory('.well-known/wallets', path, mimetype='application/json')
elif os.path.isfile('.well-known/wallets/' + path):
address = ''
@@ -94,6 +94,9 @@ def wallet(path):
address = address.strip()
return make_response(address, 200, {'Content-Type': 'text/plain'})
if os.path.isfile('.well-known/wallets/' + path.upper()):
return redirect('/.well-known/wallets/' + path.upper(), code=302)
return render_template('404.html'), 404