This commit is contained in:
syuilo
2018-04-15 02:58:49 +09:00
parent 986780a39a
commit 5a49d14246
3 changed files with 4 additions and 5 deletions

View File

@@ -55,8 +55,7 @@ export default class Replacer {
public replacement(ctx, match, a, b, c) {
const client = 'misskey/src/client/app/';
const name = ctx.src.substr(ctx.src.indexOf(client) + client.length);
if (name == '') return match;
const name = ctx ? ctx.src.substr(ctx.src.indexOf(client) + client.length) : null;
let key = a || b || c;
if (key[0] == '@') {