]> cat aescling's git repositories - mastodon.git/commitdiff
Use animation config for avatar in profile pages (#8614)
authorRenato "Lond" Cerqueira <renato@lond.com.br>
Fri, 7 Sep 2018 03:43:09 +0000 (05:43 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 7 Sep 2018 03:43:09 +0000 (05:43 +0200)
Fixes #7380.

app/views/accounts/_header.html.haml

index 95e55a1b0249556908f1955f50e36083b6fcb8a4..bfad49b6ccdcd92a8164bee0676c6cae2907b9e0 100644 (file)
@@ -3,7 +3,10 @@
     = image_tag account.header.url, class: 'parallax'
   .public-account-header__bar
     = link_to short_account_url(account), class: 'avatar' do
-      = image_tag account.avatar.url
+      - if current_account&.user&.setting_auto_play_gif
+        = image_tag account.avatar_original_url
+      - else
+        = image_tag account.avatar_static_url
     .public-account-header__tabs
       .public-account-header__tabs__name
         %h1