From 222dbaf5c23b41eabb75a83784bd4d110e981547 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 16:11:31 -0500 Subject: Daily upvote email now includes details about webmention likes --- app/mailers/vote_mailer.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/mailers/vote_mailer.rb') diff --git a/app/mailers/vote_mailer.rb b/app/mailers/vote_mailer.rb index 77ac3d1..90d2868 100644 --- a/app/mailers/vote_mailer.rb +++ b/app/mailers/vote_mailer.rb @@ -1,4 +1,6 @@ class VoteMailer < ApplicationMailer + helper :votes + def daily_report_email @entries = params[:votes].group_by { |v| "#{v.votable_type}_#{v.votable_id}" }.values # weird way of getting the admin's email -- cgit 1.4.1