From 7db81cde444f6bc95e79527af0997de1788d48c7 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 19 Mar 2023 13:11:46 +0100 Subject: [feature] Email notifications for new / closed moderation reports (#1628) * start fiddling about with email sending to allow multiple recipients * do some fiddling * notifs working * notify on closed report * finishing up * envparsing * use strings.ContainsAny --- internal/processing/processor.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/processing/processor.go') diff --git a/internal/processing/processor.go b/internal/processing/processor.go index 98b417ba3..ad485b9ae 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -48,6 +48,7 @@ type Processor struct { statusTimelines timeline.Manager state *state.State filter visibility.Filter + emailSender email.Sender /* SUB-PROCESSORS @@ -119,8 +120,9 @@ func NewProcessor( StatusPrepareFunction(state.DB, tc), StatusSkipInsertFunction(), ), - state: state, - filter: filter, + state: state, + filter: filter, + emailSender: emailSender, } // sub processors -- cgit v1.2.3