Merge remote-tracking branch 'misskey-dev/develop' into io

This commit is contained in:
まっちゃとーにゅ 2024-02-27 04:08:00 +09:00
commit d18e3e9b93
No known key found for this signature in database
GPG key ID: 6AFBBF529601C1DB
12 changed files with 59 additions and 22 deletions

View file

@ -405,6 +405,11 @@ export class CustomEmojiService implements OnApplicationShutdown {
return this.emojisRepository.findOneBy({ id });
}
@bindThis
public getEmojiByName(name: string): Promise<MiEmoji | null> {
return this.emojisRepository.findOneBy({ name, host: IsNull() });
}
@bindThis
public dispose(): void {
this.cache.dispose();