diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-08 17:48:02 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-08 17:48:02 +0900 |
| commit | 650187deaff1b2950d9471ac3ac9fdc2db942863 (patch) | |
| tree | 8878d537bab6559a8b332c2f91a0696f2a30d5b8 /packages/backend/src/core/CustomEmojiService.ts | |
| parent | enhance(client): use VuePlyr (diff) | |
| download | misskey-650187deaff1b2950d9471ac3ac9fdc2db942863.tar.gz misskey-650187deaff1b2950d9471ac3ac9fdc2db942863.tar.bz2 misskey-650187deaff1b2950d9471ac3ac9fdc2db942863.zip | |
perf(client): do not render custom emojis in user names
#9778
Diffstat (limited to 'packages/backend/src/core/CustomEmojiService.ts')
| -rw-r--r-- | packages/backend/src/core/CustomEmojiService.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index 63f0319442..3ac796fb2f 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -150,17 +150,9 @@ export class CustomEmojiService { if (note.renote) { emojis = emojis.concat(note.renote.emojis .map(e => this.parseEmojiStr(e, note.renote!.userHost))); - if (note.renote.user) { - emojis = emojis.concat(note.renote.user.emojis - .map(e => this.parseEmojiStr(e, note.renote!.userHost))); - } } const customReactions = Object.keys(note.reactions).map(x => this.reactionService.decodeReaction(x)).filter(x => x.name != null) as typeof emojis; emojis = emojis.concat(customReactions); - if (note.user) { - emojis = emojis.concat(note.user.emojis - .map(e => this.parseEmojiStr(e, note.userHost))); - } } return emojis.filter(x => x.name != null && x.host != null) as { name: string; host: string; }[]; } |