summaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-05-17 15:29:18 +0900
committerGitHub <noreply@github.com>2018-05-17 15:29:18 +0900
commit12cd3714e0d55024131dda8181d2f77ecc83576c (patch)
treedd7c03538c4d4beb9b23ee26b059b677d4cd4c6f /src/text
parentNew translations ja.yml (Korean) (diff)
parentoops (diff)
downloadmisskey-12cd3714e0d55024131dda8181d2f77ecc83576c.tar.gz
misskey-12cd3714e0d55024131dda8181d2f77ecc83576c.tar.bz2
misskey-12cd3714e0d55024131dda8181d2f77ecc83576c.zip
Merge branch 'master' into l10n_master
Diffstat (limited to 'src/text')
-rw-r--r--src/text/html.ts3
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);
},