about summary refs log tree commit diff
path: root/app/views/accounts/following.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/accounts/following.html.haml')
-rw-r--r--app/views/accounts/following.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/accounts/following.html.haml b/app/views/accounts/following.html.haml
index 6e1ba583c..b20ee5318 100644
--- a/app/views/accounts/following.html.haml
+++ b/app/views/accounts/following.html.haml
@@ -6,10 +6,9 @@
 = render partial: 'header'
 
 .accounts-grid
-  - @following.each do |f|
-    = render partial: 'grid_card', locals: { account: f }
-
   - if @following.empty?
     = render partial: 'nothing_here'
+  - else
+    = render partial: 'grid_card', collection: @following, as: :account
 
 = will_paginate @following, pagination_options