Skip to content

Commit 9d364e2

Browse files
renatolondroot
authored andcommitted
Use animation config for avatar in profile pages (mastodon#8614)
Fixes mastodon#7380.
1 parent 2b649d2 commit 9d364e2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/views/accounts/_header.html.haml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
= image_tag account.header.url, class: 'parallax'
44
.public-account-header__bar
55
= link_to short_account_url(account), class: 'avatar' do
6-
= image_tag account.avatar.url
6+
- if current_account&.user&.setting_auto_play_gif
7+
= image_tag account.avatar_original_url
8+
- else
9+
= image_tag account.avatar_static_url
710
.public-account-header__tabs
811
.public-account-header__tabs__name
912
%h1

0 commit comments

Comments
 (0)