enhance: convert svg to png of custom emojis

This commit is contained in:
syuilo
2022-01-21 18:47:02 +09:00
parent 43baafbebb
commit eec7e6500e
12 changed files with 49 additions and 59 deletions

View File

@@ -45,8 +45,9 @@ export default define(meta, async (ps, me) => {
category: null,
host: null,
aliases: [],
url: file.url,
type: file.type,
originalUrl: file.url,
publicUrl: file.webpublicUrl ?? file.url,
type: file.webpublicType ?? file.type,
}).then(x => Emojis.findOneOrFail(x.identifiers[0]));
await getConnection().queryResultCache!.remove(['meta_emojis']);