From cc808251eea01ec245f98de5845f06398d066858 Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Fri, 13 Dec 2019 12:18:45 -0600 Subject: [PATCH] Remove unused aggregation reaction cache (#5104) --- .../notifications/_aggregated_reactions.html.erb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/views/notifications/_aggregated_reactions.html.erb b/app/views/notifications/_aggregated_reactions.html.erb index ed3be3354..0b605d8fa 100644 --- a/app/views/notifications/_aggregated_reactions.html.erb +++ b/app/views/notifications/_aggregated_reactions.html.erb @@ -1,13 +1,11 @@ <%# TODO: change to map of IDs %> <% actors = siblings.map { |n| n["user"] }.uniq %> <% reactable_data = notification.json_data["reaction"]["reactable"] %> -<% cache "activity-profile-pic-#{actors.first['id']}-#{actors.first['profile_image_90']}" do %> - " class="small-pic-link-wrapper"> -
- " alt="link to <%= actors.first["username"] %>'s profile"> -
-
-<% end %> +" class="small-pic-link-wrapper"> +
+ " alt="link to <%= actors.first["username"] %>'s profile"> +
+
<% if actors.size == 1 %>