mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-24 23:26:25 +09:00
fix #1428
This commit is contained in:
parent
161bce1a42
commit
859c0c3491
@ -1,5 +1,6 @@
|
|||||||
import { lib as emojilib } from 'emojilib';
|
import { lib as emojilib } from 'emojilib';
|
||||||
import { JSDOM } from 'jsdom';
|
import { JSDOM } from 'jsdom';
|
||||||
|
import config from '../config';
|
||||||
|
|
||||||
const handlers = {
|
const handlers = {
|
||||||
bold({ document }, { bold }) {
|
bold({ document }, { bold }) {
|
||||||
@ -43,7 +44,7 @@ const handlers = {
|
|||||||
|
|
||||||
mention({ document }, { content }) {
|
mention({ document }, { content }) {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = '/' + content;
|
a.href = `${config.url}/${content}`;
|
||||||
a.textContent = content;
|
a.textContent = content;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user