mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 06:27:59 +00:00
format instance name instead of inbox url
This commit is contained in:
parent
b15665eb1f
commit
12af824b56
|
@ -1,10 +1,11 @@
|
||||||
import aiohttp.web
|
import aiohttp.web
|
||||||
|
import re
|
||||||
from . import app, CONFIG
|
from . import app, CONFIG
|
||||||
from .database import DATABASE
|
from .database import DATABASE
|
||||||
|
|
||||||
host = CONFIG['ap']['host']
|
host = CONFIG['ap']['host']
|
||||||
note = CONFIG['note']
|
note = CONFIG['note']
|
||||||
targets = '<br>'.join([target for target in DATABASE.get('relay-list', [])])
|
targets = '<br>'.join([re.search('https://(.*)/inbox',target).group(1) for target in DATABASE.get('relay-list', [])])
|
||||||
|
|
||||||
async def default(request):
|
async def default(request):
|
||||||
return aiohttp.web.Response(
|
return aiohttp.web.Response(
|
||||||
|
|
Loading…
Reference in a new issue