Revert "format instance name instead of inbox url"
authorTristan Mahé <gled@remote-shell.net>
Wed, 31 Oct 2018 19:32:00 +0000 (12:32 -0700)
committerTristan Mahé <gled@remote-shell.net>
Wed, 31 Oct 2018 19:32:00 +0000 (12:32 -0700)
This reverts commit 12af824b56159d24ffe5cd22eb9fe46be52bb25d.

relay/default.py

index 172c9d3..de2dc1e 100644 (file)
@@ -1,11 +1,10 @@
 import aiohttp.web
-import re
 from . import app, CONFIG
 from .database import DATABASE
 
 host = CONFIG['ap']['host']
 note = CONFIG['note']
-targets = '<br>'.join([re.search('https://(.*)/inbox',target).group(1) for target in DATABASE.get('relay-list', [])])
+targets = '<br>'.join([target for target in DATABASE.get('relay-list', [])])
 
 async def default(request):
     return aiohttp.web.Response(