]> cat aescling's git repositories - mastodon.git/commitdiff
Restore oops.gif animation for user who have auto_play_gif set
authorThibaut Girka <thib@sitedethib.com>
Tue, 18 Dec 2018 22:15:30 +0000 (23:15 +0100)
committerThibG <thib@sitedethib.com>
Wed, 19 Dec 2018 19:49:58 +0000 (20:49 +0100)
app/views/layouts/error.html.haml

index c9afbb5c8f117c89d5c8e43a07f7a6269064f985..d662d85e2e19bbdcfca765e7d8d52e14e58e386b 100644 (file)
@@ -9,6 +9,6 @@
     = render partial: 'layouts/theme', object: (@theme || { pack: 'common', flavour: 'glitch', skin: 'default' })
   %body.error
     .dialog
-      %img{ alt: Setting.default_settings['site_title'], src: '/oops.png' }/
+      %img{ alt: Setting.default_settings['site_title'], src: current_user&.setting_auto_play_gif ? '/oops.gif' : '/oops.png' }/
       %div
         %h1= yield :content