Skip to content

Commit

Permalink
Use animation config for avatar in profile pages (mastodon#8614)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolond authored and root committed Oct 10, 2018
1 parent 9eb4726 commit 84967fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/accounts/_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84967fd

Please sign in to comment.