about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorRenato "Lond" Cerqueira <renato@lond.com.br>2018-09-07 05:43:09 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-09-07 05:43:09 +0200
commit7607f4778b0e9021d4ed6ebcafbff60e67e38e59 (patch)
treedd776f7e47b8785ac8be3aea005dd73c48693a44 /app/views/accounts
parent2058af4a265e96291096d8c1d1da2ad83c5d24cf (diff)
Use animation config for avatar in profile pages (#8614)
Fixes #7380.
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/_header.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/accounts/_header.html.haml b/app/views/accounts/_header.html.haml
index 95e55a1b0..bfad49b6c 100644
--- a/app/views/accounts/_header.html.haml
+++ b/app/views/accounts/_header.html.haml
@@ -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