fix: allowing gif on the sharing (#425)

This commit is contained in:
Erick
2023-01-23 19:14:20 -03:00
committed by GitHub
parent d24a41a0d8
commit 241c22b1da
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ describe('Share API', () => {
test('Invalid file extension returns 404 and html', async () => {
const req = Object.assign({}, baseReq, {
path: 'wrong.gif',
path: 'wrong.mp3',
});
const res = await getShareResponse(req);
expect(res.status).toEqual(404);

View File

@ -14,7 +14,7 @@ import portalAnimationControllerTmpl from './templates/portal-animation-controll
import gaTmpl from './templates/ga';
const VALID_VIDEO_EXT = [ '.mp4' ];
const VALID_VIDEO_EXT = [ '.mp4', '.gif' ];
const BaseHTMLContext: Record<string, string | Record<string, string>> = {
appUrl: '',