This commit is contained in:
syuilo
2018-07-01 13:46:34 +09:00
parent 5fb8f5a8c7
commit 10e5caa766
2 changed files with 5 additions and 2 deletions

View File

@@ -92,6 +92,10 @@ const handlers: { [key: string]: (window: any, token: any, mentionedRemoteUsers:
};
export default (tokens: TextElement[], mentionedRemoteUsers: INote['mentionedRemoteUsers'] = []) => {
if (tokens == null) {
return null;
}
const { window } = new JSDOM('');
for (const token of tokens) {