diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 16:11:31 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 16:11:31 -0500 |
| commit | 222dbaf5c23b41eabb75a83784bd4d110e981547 (patch) | |
| tree | b62c594df5c41e5d3e3ee38d6a543adb1daa8539 /app/mailers | |
| parent | a996f3bd05fc480247fd112f23fa3e67f7d5d7b5 (diff) | |
| download | thoughts-222dbaf5c23b41eabb75a83784bd4d110e981547.tar.gz thoughts-222dbaf5c23b41eabb75a83784bd4d110e981547.tar.bz2 thoughts-222dbaf5c23b41eabb75a83784bd4d110e981547.zip | |
Daily upvote email now includes details about webmention likes
Diffstat (limited to 'app/mailers')
| -rw-r--r-- | app/mailers/vote_mailer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
| 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 @@ | |||
| 1 | class VoteMailer < ApplicationMailer | 1 | class VoteMailer < ApplicationMailer |
| 2 | helper :votes | ||
| 3 | |||
| 2 | def daily_report_email | 4 | def daily_report_email |
| 3 | @entries = params[:votes].group_by { |v| "#{v.votable_type}_#{v.votable_id}" }.values | 5 | @entries = params[:votes].group_by { |v| "#{v.votable_type}_#{v.votable_id}" }.values |
| 4 | # weird way of getting the admin's email | 6 | # weird way of getting the admin's email |
