Merge branch 'notification-read-api' into swn
This commit is contained in:
commit
7f8e3b0dee
60 changed files with 511 additions and 468 deletions
|
|
@ -19,6 +19,7 @@ export async function proxyMedia(ctx: Koa.Context) {
|
|||
|
||||
const { mime, ext } = await detectType(path);
|
||||
|
||||
if (!mime.startsWith('image/')) throw 403;
|
||||
if (!FILE_TYPE_BROWSERSAFE.includes(mime)) throw 403;
|
||||
|
||||
let image: IImage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue