mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 14:23:08 +02:00
fix: statuses using wrong emojis
This commit is contained in:
parent
d8b0078ffa
commit
8fd669ff7d
1 changed files with 1 additions and 5 deletions
|
@ -123,11 +123,7 @@ export class MastoConverters {
|
||||||
const note = await this.getterService.getNote(status.id);
|
const note = await this.getterService.getNote(status.id);
|
||||||
const noteUser = await this.getUser(status.account.id);
|
const noteUser = await this.getUser(status.account.id);
|
||||||
|
|
||||||
const reactionEmojiNames = Object.keys(note.reactions)
|
const emojis = await this.customEmojiService.populateEmojis(note.emojis, noteUser.host ? noteUser.host : this.config.host);
|
||||||
.filter(x => x.startsWith(':') && x.includes('@') && !x.includes('@.'))
|
|
||||||
.map(x => this.reactionService.decodeReaction(x).reaction.replaceAll(':', ''));
|
|
||||||
|
|
||||||
const emojis = await this.customEmojiService.populateEmojis(reactionEmojiNames, noteUser.host ? noteUser.host : this.config.host);
|
|
||||||
const emoji: Entity.Emoji[] = [];
|
const emoji: Entity.Emoji[] = [];
|
||||||
Object.entries(emojis).forEach(entry => {
|
Object.entries(emojis).forEach(entry => {
|
||||||
const [key, value] = entry;
|
const [key, value] = entry;
|
||||||
|
|
Loading…
Reference in a new issue