mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 02:56:43 -06:00
chore: check emoji host
This commit is contained in:
parent
aa8adc07aa
commit
f5d6b84381
1 changed files with 6 additions and 4 deletions
|
@ -44,11 +44,13 @@ export class CustomEmojiService {
|
||||||
type: data.driveFile.webpublicType ?? data.driveFile.type,
|
type: data.driveFile.webpublicType ?? data.driveFile.type,
|
||||||
}).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0]));
|
}).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0]));
|
||||||
|
|
||||||
|
if (data.host == null) {
|
||||||
await this.db.queryResultCache!.remove(['meta_emojis']);
|
await this.db.queryResultCache!.remove(['meta_emojis']);
|
||||||
|
|
||||||
this.globalEventService.publishBroadcastStream('emojiAdded', {
|
this.globalEventService.publishBroadcastStream('emojiAdded', {
|
||||||
emoji: await this.emojiEntityService.pack(emoji.id),
|
emoji: await this.emojiEntityService.pack(emoji.id),
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return emoji;
|
return emoji;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue