about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-08 01:32:26 +0100
committerGitHub <noreply@github.com>2018-12-08 01:32:26 +0100
commit6b78e5b5ab813625152149b7e215d0568a595cdc (patch)
treee3bccf93cf3bfda06b35f1e4069cf7ef3a8454b1 /app/views
parent4638b1682247df52ab5b22d06cd2a3df3277b2f9 (diff)
Cache hashtag sample accounts, and exclude ineligible ones (#9465)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/directories/index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/directories/index.html.haml b/app/views/directories/index.html.haml
index 219950a51..f70eb964a 100644
--- a/app/views/directories/index.html.haml
+++ b/app/views/directories/index.html.haml
@@ -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'