<%# missing cache key %> <% siblings = notification.json_data["reaction"]["aggregated_siblings"].select { |n| n["created_at"] > 24.hours.ago } %> <% if siblings.length == 0 %> <% cache "activity-profile-pic-#{notification.json_data['user']['id']}-#{notification.json_data['user']['profile_image_90']}" do %> " class="small-pic-link-wrapper">
" alt="link to <%= notification.json_data["user"]["username"] %> profile">
<% end %>
"><%= notification.json_data["user"]["name"] %> reacted to " class="notification-comment-reacted-link"> <%# title is blank when it's a comment with only an image, for example %> <%= notification.json_data["reaction"]["reactable"]["title"].blank? ? "your #{notification.json_data['reaction']['reactable_type'].downcase}" : sanitize(notification.json_data["reaction"]["reactable"]["title"]) %> <% category = notification.json_data["reaction"]["category"] %> with <%= image_tag(ReactionImage.new(category).path, class: "reaction-image", alt: "a #{category.humanize}") %>
<% else %> <%= render "aggregated_reactions", notification: notification, siblings: siblings %> <% end %>