Merge branch 'allow-apng' into 'develop'
file_type.service: allow apng images to be rendered See merge request pleroma/pleroma-fe!1877
This commit is contained in:
commit
a98e241a81
|
@ -0,0 +1 @@
|
|||
Make Pleroma FE to also view apng (Animated PNG) attachment.
|
|
@ -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)$/)) {
|
||||
|
|
Loading…
Reference in New Issue