カスタム絵文字にプロキシを復活 (#9481)
* wip * Revert "Update ClientServerService.ts" This reverts commit88c64ece78. * Revert "disable custom emoji proxy temporary" This reverts commit495d513efd. * ✌️
This commit is contained in:
parent
a42b03c154
commit
5ec89ea0c3
3 changed files with 16 additions and 11 deletions
|
|
@ -3,6 +3,7 @@ import { FILE_TYPE_BROWSERSAFE } from '@/const.js';
|
|||
const dictionary = {
|
||||
'safe-file': FILE_TYPE_BROWSERSAFE,
|
||||
'sharp-convertible-image': ['image/jpeg', 'image/png', 'image/gif', 'image/apng', 'image/vnd.mozilla.apng', 'image/webp', 'image/avif', 'image/svg+xml'],
|
||||
'sharp-animation-convertible-image': ['image/jpeg', 'image/png', 'image/gif', 'image/webp', 'image/avif', 'image/svg+xml'],
|
||||
};
|
||||
|
||||
export const isMimeImage = (mime: string, type: keyof typeof dictionary): boolean => dictionary[type].includes(mime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue