From 51d2ab4e36b03d274cea64fa97a307573a87326d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tristan=20Mah=C3=A9?= Date: Wed, 31 Oct 2018 12:32:10 -0700 Subject: [PATCH] Revert "expose the list of registered targets to default page" This reverts commit b15665eb1f518ef16bc6deb87ed49dc439969b42. --- relay/default.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/relay/default.py b/relay/default.py index de2dc1e..cc08e06 100644 --- a/relay/default.py +++ b/relay/default.py @@ -1,10 +1,8 @@ import aiohttp.web 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', [])]) async def default(request): return aiohttp.web.Response( @@ -25,9 +23,8 @@ 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}

-""".format(host=host, note=note,targets=targets)) +""".format(host=host, note=note)) app.router.add_get('/', default) -- 2.20.1