diff --git a/relay/default.py b/relay/default.py
index de2dc1e..638e0c7 100644
--- a/relay/default.py
+++ b/relay/default.py
@@ -1,10 +1,13 @@
import aiohttp.web
+import urllib.parse
from . import app, CONFIG
from .database import DATABASE
host = CONFIG['ap']['host']
note = CONFIG['note']
-targets = '
'.join([target for target in DATABASE.get('relay-list', [])])
+
+inboxes = DATABASE.get('relay-list', [])
+targets = '
'.join([urllib.parse.urlsplit(target).hostname for target in inboxes])
async def default(request):
return aiohttp.web.Response(
@@ -25,9 +28,9 @@ async def default(request):
For Mastodon instances, you may subscribe to this relay with the address: https://{host}/inbox
For Pleroma and other instances, you may subscribe to this relay with the address: https://{host}/actor
To host your own relay, you may download the code at this address: https://git.pleroma.social/pleroma/relay
-List of registered instances:
{targets}
List of {count} registered instances:
{targets}