1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 22:35:53 +02:00
This commit is contained in:
syuilo
2018-10-29 19:11:01 +09:00
parent 4b145da046
commit b480ef669c
2 changed files with 8 additions and 2 deletions

View File

@@ -216,6 +216,12 @@ router.get('/*/*', async ctx => {
replace: config.url
}));
showdown.extension('wsUrlExtension', () => ({
type: 'output',
regex: /%WS_URL%/g,
replace: config.ws_url
}));
showdown.extension('apiUrlExtension', () => ({
type: 'output',
regex: /%API_URL%/g,