]> cat aescling's git repositories - mastodon.git/commitdiff
Fix static URL when disable autoplay (#8548)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Sat, 1 Sep 2018 14:09:24 +0000 (23:09 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 1 Sep 2018 14:09:24 +0000 (16:09 +0200)
app/views/stream_entries/_detailed_status.html.haml
app/views/stream_entries/_simple_status.html.haml

index bf5f614a116ca1d79c442b93ec65c4efed45de64..d0d9cc5fc5149cd122ccb401f9727f4f5fc38376 100644 (file)
@@ -2,9 +2,9 @@
   = link_to TagManager.instance.url_for(status.account), class: 'detailed-status__display-name p-author h-card', target: stream_link_target, rel: 'noopener' do
     .detailed-status__display-avatar
       - if current_account&.user&.setting_auto_play_gif || autoplay
-        = image_tag status.account.avatar.url(:original), width: 48, height: 48, alt: '', class: 'account__avatar u-photo'
+        = image_tag status.account.avatar_original_url, width: 48, height: 48, alt: '', class: 'account__avatar u-photo'
       - else
-        = image_tag status.account.avatar.url(:static), width: 48, height: 48, alt: '', class: 'account__avatar u-photo'
+        = image_tag status.account.avatar_static_url, width: 48, height: 48, alt: '', class: 'account__avatar u-photo'
     %span.display-name
       %bdi
         %strong.display-name__html.p-name.emojify= display_name(status.account, custom_emojify: true, autoplay: autoplay)
index e147596f6979f6880ea81154068674b0417d6c06..fc2cacf30a5e158fa0b70ff5ff71a2a3cbf2e4ea 100644 (file)
@@ -8,9 +8,9 @@
       .status__avatar
         %div
           - if current_account&.user&.setting_auto_play_gif || autoplay
-            = image_tag status.account.avatar(:original), width: 48, height: 48, alt: '', class: 'u-photo account__avatar'
+            = image_tag status.account.avatar_original_url, width: 48, height: 48, alt: '', class: 'u-photo account__avatar'
           - else
-            = image_tag status.account.avatar(:static), width: 48, height: 48, alt: '', class: 'u-photo account__avatar'
+            = image_tag status.account.avatar_static_url, width: 48, height: 48, alt: '', class: 'u-photo account__avatar'
       %span.display-name
         %bdi
           %strong.display-name__html.p-name.emojify= display_name(status.account, custom_emojify: true, autoplay: autoplay)