diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-05-17 08:16:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-17 08:16:10 +0900 |
| commit | 05dd381502e31c1a420ecc2bccca94400f370ddc (patch) | |
| tree | fc31925dfa7276641cb107adef8d9aef423f41eb /src | |
| parent | Merge pull request #1588 from rinsuki/fix/yarn-lock-ignore (diff) | |
| parent | fix #1428 (diff) | |
| download | sharkey-05dd381502e31c1a420ecc2bccca94400f370ddc.tar.gz sharkey-05dd381502e31c1a420ecc2bccca94400f370ddc.tar.bz2 sharkey-05dd381502e31c1a420ecc2bccca94400f370ddc.zip | |
Merge pull request #1589 from rinsuki/fix/1428
fix #1428
Diffstat (limited to 'src')
| -rw-r--r-- | src/text/html.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text/html.ts b/src/text/html.ts index f33ef4997b..40f86e4b2b 100644 --- a/src/text/html.ts +++ b/src/text/html.ts @@ -1,5 +1,6 @@ import { lib as emojilib } from 'emojilib'; import { JSDOM } from 'jsdom'; +import config from '../config'; const handlers = { bold({ document }, { bold }) { @@ -43,7 +44,7 @@ const handlers = { mention({ document }, { content }) { const a = document.createElement('a'); - a.href = '/' + content; + a.href = `${config.url}/${content}`; a.textContent = content; document.body.appendChild(a); }, |