FIX: Skip animated gif treatment for onebox avatar (#24199)

This fixes an edge case where the layout of a onebox with a gif avatar
was broken. Oneboxes have specific styling attached to avatar images and
the pausable animated image treatment was breaking that styling.
This commit is contained in:
Penar Musaraj 2023-11-01 16:24:06 -04:00 committed by GitHub
parent 88bb5fa773
commit 77445a4b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ export default {
return; return;
} }
let images = post.querySelectorAll("img.animated"); let images = post.querySelectorAll("img.animated:not(.onebox-avatar)");
images.forEach((img) => { images.forEach((img) => {
// skip for edge case of multiple animated images in same block // skip for edge case of multiple animated images in same block