mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 14:38:00 +00:00
Merge branch 'feature/always-update-displayed-instance-list' into 'master'
Rebuild the list of instances that use this relay every time it is requested See merge request pleroma/relay!6
This commit is contained in:
commit
950cd1e720
|
@ -7,9 +7,9 @@ host = CONFIG['ap']['host']
|
||||||
note = CONFIG['note']
|
note = CONFIG['note']
|
||||||
|
|
||||||
inboxes = DATABASE.get('relay-list', [])
|
inboxes = DATABASE.get('relay-list', [])
|
||||||
targets = '<br>'.join([urllib.parse.urlsplit(target).hostname for target in inboxes])
|
|
||||||
|
|
||||||
async def default(request):
|
async def default(request):
|
||||||
|
targets = '<br>'.join([urllib.parse.urlsplit(target).hostname for target in inboxes])
|
||||||
return aiohttp.web.Response(
|
return aiohttp.web.Response(
|
||||||
status=200,
|
status=200,
|
||||||
content_type="text/html",
|
content_type="text/html",
|
||||||
|
|
Loading…
Reference in a new issue