From: ThibG Date: Fri, 19 Jul 2019 07:18:23 +0000 (+0200) Subject: Fix avatar animation on hover when not logged in (#11349) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=4fa6472523d47e56f2458950af8d7ad9b5817a82;p=mastodon.git Fix avatar animation on hover when not logged in (#11349) --- diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index 3135636cf..292441385 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -178,7 +178,7 @@ function main() { return ({ target }) => { const swapSrc = target.getAttribute(swapTo); //only change the img source if autoplay is off and the image src is actually different - if(target.getAttribute('data-autoplay') === 'false' && target.src !== swapSrc) { + if(target.getAttribute('data-autoplay') !== 'true' && target.src !== swapSrc) { target.src = swapSrc; } };