summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/CustomEmojiService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-02-08 20:07:19 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-02-08 20:07:19 +0900
commit73f06e591ab1aecd780fd7f1e1181b86c29b3f7e (patch)
tree076b9f5f661f1fa960b996d9c96f58bf2dc8beac /packages/backend/src/core/CustomEmojiService.ts
parentfix(client): 通知のノート表示で_nowrapが効いていない問題を... (diff)
downloadmisskey-73f06e591ab1aecd780fd7f1e1181b86c29b3f7e.tar.gz
misskey-73f06e591ab1aecd780fd7f1e1181b86c29b3f7e.tar.bz2
misskey-73f06e591ab1aecd780fd7f1e1181b86c29b3f7e.zip
revert: 650187deaf
Diffstat (limited to 'packages/backend/src/core/CustomEmojiService.ts')
-rw-r--r--packages/backend/src/core/CustomEmojiService.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts
index 3ac796fb2f..63f0319442 100644
--- a/packages/backend/src/core/CustomEmojiService.ts
+++ b/packages/backend/src/core/CustomEmojiService.ts
@@ -150,9 +150,17 @@ 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; }[];
}