Cache hashtag sample accounts, and exclude ineligible ones (#9465)

This commit is contained in:
Eugen Rochko
2018-12-08 01:32:26 +01:00
committed by GitHub
parent 4638b16822
commit 6b78e5b5ab
3 changed files with 8 additions and 3 deletions

View File

@ -57,5 +57,5 @@
%small= t('directories.people', count: tag.accounts_count)
.avatar-stack
- tag.accounts.limit(3).each do |account|
- tag.cached_sample_accounts.each do |account|
= image_tag current_account&.user&.setting_auto_play_gif ? account.avatar_original_url : account.avatar_static_url, width: 48, height: 48, alt: '', class: 'account__avatar'