logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: a98e241a815a95a2a7dd073aec8a993719037dcc
parent 4a7b49181a89d30da11924d0a5e148b555ca1d5d
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Mon, 11 Dec 2023 12:44:28 +0000

Merge branch 'allow-apng' into 'develop'

file_type.service: allow apng images to be rendered

See merge request pleroma/pleroma-fe!1877

Diffstat:

Achangelog.d/add-apng.add1+
Msrc/services/file_type/file_type.service.js2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/changelog.d/add-apng.add b/changelog.d/add-apng.add @@ -0,0 +1 @@ +Make Pleroma FE to also view apng (Animated PNG) attachment. diff --git a/src/services/file_type/file_type.service.js b/src/services/file_type/file_type.service.js @@ -26,7 +26,7 @@ export const fileType = mimetype => { } export const fileTypeExt = url => { - if (url.match(/\.(png|jpe?g|gif|webp|avif)$/)) { + if (url.match(/\.(a?png|jpe?g|gif|webp|avif)$/)) { return 'image' } if (url.match(/\.(ogv|mp4|webm|mov)$/)) {