diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-05-05 21:16:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 21:16:55 +0200 |
commit | 351c74459084ccffce1333b57c2af9a6b55cac8d (patch) | |
tree | 8f698b8df06426414f1f7917b26465cc4a37e4d5 /app/views/accounts | |
parent | 059df83d1dcabb27d2e638b4835791bd570ec779 (diff) |
Fix error when trying to render component for media without meta (#16112)
Diffstat (limited to 'app/views/accounts')
-rw-r--r-- | app/views/accounts/_header.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/accounts/_header.html.haml b/app/views/accounts/_header.html.haml index 4ef9f9478..cae5a5ac9 100644 --- a/app/views/accounts/_header.html.haml +++ b/app/views/accounts/_header.html.haml @@ -1,9 +1,9 @@ .public-account-header{:class => ("inactive" if account.moved?)} .public-account-header__image - = image_tag (current_account&.user&.setting_auto_play_gif ? account.header_original_url : account.header_static_url), class: 'parallax' + = image_tag (prefers_autoplay? ? account.header_original_url : account.header_static_url), class: 'parallax' .public-account-header__bar = link_to short_account_url(account), class: 'avatar' do - = image_tag (current_account&.user&.setting_auto_play_gif ? account.avatar_original_url : account.avatar_static_url), id: 'profile_page_avatar', data: {original: full_asset_url(account.avatar_original_url), static: full_asset_url(account.avatar_static_url), autoplay: current_account&.user&.setting_auto_play_gif} + = image_tag (prefers_autoplay? ? account.avatar_original_url : account.avatar_static_url), id: 'profile_page_avatar', data: { original: full_asset_url(account.avatar_original_url), static: full_asset_url(account.avatar_static_url), autoplay: prefers_autoplay? } .public-account-header__tabs .public-account-header__tabs__name %h1 |