]> cat aescling's git repositories - mastodon.git/commitdiff
Fix error in admin UI for hashtag usage breakdown (#11743)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 3 Sep 2019 05:59:52 +0000 (07:59 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2019 05:59:52 +0000 (07:59 +0200)
app/views/admin/tags/show.html.haml

index f9677874a791a73048c36fd74b9d16c5b8cc8617..d54a43c1e8f524eca1cc3b97ea7a85a042689bf4 100644 (file)
@@ -38,7 +38,7 @@
 .table-wrapper
   %table.table
     %tbody
-      - total = @usage_by_domain.sum(&:statuses_count).to_f
+      - total = @usage_by_domain.sum(&:last).to_f
 
       - @usage_by_domain.each do |(domain, count)|
         %tr