diff --git a/changelog.d/add-apng.add b/changelog.d/add-apng.add new file mode 100644 index 0000000000..cdec58afca --- /dev/null +++ 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 index b92c6c6446..f7989ffed6 100644 --- 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)$/)) {