diff --git a/patches/add-user-notify-email/add-user-notify-email.go b/patches/add-user-notify-email/add-user-notify-email.go new file mode 100644 index 00000000..921eacc5 --- /dev/null +++ b/patches/add-user-notify-email/add-user-notify-email.go @@ -0,0 +1,13 @@ +package main + +import "github.com/animenotifier/arn" + +func main() { + defer arn.Node.Close() + + for user := range arn.StreamUsers() { + settings := user.Settings() + settings.NotificationEmail = user.Email + settings.Save() + } +}