<% if notification.action == "Reaction" %> <%= render "reaction", notification: notification %> <% else %> <% json_data = notification.json_data %> <% cache "activity-profile-pic-#{json_data['user']['id']}-#{json_data['user']['profile_image_90']}" do %> " class="small-pic-link-wrapper">
" alt="link to <%= json_data["user"]["username"] %>'s profile">
<% end %>
<% if notification.action.blank? %> "><%= json_data["user"]["name"] %> <% if json_data["comment"]["depth"] && json_data["comment"]["depth"] > 0 %> replied to a thread in <% else %> commented on <% end %> "> <%= h(json_data["comment"]["commentable"]["title"]) %> <% if json_data["comment"]["created_at"] %>
<%= time_ago_in_words json_data["comment"]["created_at"] %> ago
<% end %> <%= render "notifications/shared/comment_box", json_data: json_data, notification: notification, context: "default" %> <% elsif notification.action == "Moderation" %> ">@<%= json_data["comment"]["path"].split("/")[1] %> just left a comment. Since they are new to the community, could you leave a nice reply to help them feel welcome? Thank you!

Alternatively, if this comment violates the code of conduct, please downvote/report as appropriate.

re: "> <%= h(json_data["comment"]["commentable"]["title"]) %> <%= render "notifications/shared/comment_box", json_data: json_data, notification: notification, context: "moderation" %>
All negative reactions are 100% private.
<% elsif notification.action == "First" %> "><%= json_data["user"]["name"] %> wrote their first comment on: "> <%= h(json_data["comment"]["commentable"]["title"]) %>
<%= time_ago_in_words notification.created_at %> ago
<%= render "notifications/shared/comment_box", activity: activity, context: "moderation" %> Give them their first reply! 🎉
<% end %>
<% end %>