logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: fb4d43ced24cdbe8f9819919eb838e8dd7303ff4
parent 02fff5ddd50f19f22f8c3e6278016aef6f507b8c
Author: Yonle <yonle@lecturify.net>
Date:   Mon,  4 Dec 2023 21:52:28 +0700

file_type.service: allow apng images to be rendered

Signed-off-by: Yonle <yonle@lecturify.net>

Diffstat:

Msrc/services/file_type/file_type.service.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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)$/)) {