Disabled E-Mail notifications in dev mode

This commit is contained in:
Eduard Urbach 2019-11-03 01:54:25 +09:00
parent e53d7288ba
commit 7f4534f03e
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -212,15 +212,15 @@ func (user *User) SendNotification(pushNotification *PushNotification) {
subs.Save()
// Send email notification
if IsDevelopment() && user.ID == "4J6qpK1ve" {
subject := notification.Title
html := HTMLEmailRenderer.Notification(notification)
err := SendEmail(user.Email, subject, html)
// if IsDevelopment() && user.ID == "4J6qpK1ve" {
// subject := notification.Title
// html := HTMLEmailRenderer.Notification(notification)
// err := SendEmail(user.Email, subject, html)
if err != nil {
fmt.Println(err)
}
}
// if err != nil {
// fmt.Println(err)
// }
// }
// Send an event to the user's open tabs
user.BroadcastEvent(&aero.Event{