From ad5e72aaf15f50da9c51093c4377c445821791d6 Mon Sep 17 00:00:00 2001 From: sdanthinne Date: Fri, 12 May 2023 19:21:37 +0100 Subject: [PATCH] added .jpeg to support photo viewing from iOS uploads --- Dockerfile | 1 + src/models/attachment.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 50de2fa5a..ce81a5670 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ ENV PNPM_CACHE_FOLDER .cache/pnpm/ COPY package.json ./ COPY pnpm-lock.yaml ./ +COPY patches /build/patches RUN if [ "$USE_RELEASE" != true ]; then \ # https://pnpm.io/installation#using-corepack diff --git a/src/models/attachment.ts b/src/models/attachment.ts index 409f031c8..568715b7e 100644 --- a/src/models/attachment.ts +++ b/src/models/attachment.ts @@ -5,7 +5,7 @@ import type { IUser } from '@/modelTypes/IUser' import type { IFile } from '@/modelTypes/IFile' import type { IAttachment } from '@/modelTypes/IAttachment' -export const SUPPORTED_IMAGE_SUFFIX = ['.jpg', '.png', '.bmp', '.gif'] +export const SUPPORTED_IMAGE_SUFFIX = ['.jpg','.jpeg', '.png', '.bmp', '.gif'] export default class AttachmentModel extends AbstractModel implements IAttachment { id = 0