Merge remote-tracking branch 'misskey-dev/develop' into io
This commit is contained in:
commit
d18e3e9b93
12 changed files with 59 additions and 22 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue