From 47859ee204e993a2311142f6a57c80e46ae4a66a Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 13 Aug 2023 20:47:16 -0700 Subject: [PATCH] Don't spam admins with chat room reports --- .../api/barertc/barertc_webhooks.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pkg/controller/api/barertc/barertc_webhooks.go b/pkg/controller/api/barertc/barertc_webhooks.go index 71cdad7..d9913db 100644 --- a/pkg/controller/api/barertc/barertc_webhooks.go +++ b/pkg/controller/api/barertc/barertc_webhooks.go @@ -7,7 +7,6 @@ import ( "code.nonshy.com/nonshy/website/pkg/config" "code.nonshy.com/nonshy/website/pkg/controller/api" "code.nonshy.com/nonshy/website/pkg/log" - "code.nonshy.com/nonshy/website/pkg/mail" "code.nonshy.com/nonshy/website/pkg/models" ) @@ -110,24 +109,6 @@ func Report() http.HandlerFunc { log.Error("Couldn't save feedback from BareRTC report endpoint: %s", err) } - // Email the admins. - if err := mail.Send(mail.Message{ - To: config.Current.AdminEmail, - Subject: "User Feedback: Chat Room Report", - Template: "email/contact_admin.html", - Data: map[string]interface{}{ - "Title": "Chat Room Report", - "Intent": fb.Intent, - "Subject": fb.Subject, - "Message": fb.Message, - "CurrentUser": currentUser, - "BaseURL": config.Current.BaseURL, - "AdminURL": config.Current.BaseURL + "/admin/feedback", - }, - }); err != nil { - log.Error("/v1/barertc/report page: couldn't send email: %s", err) - } - // Send success response. api.SendJSON(w, http.StatusOK, Response{ OK: true,