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() subs.Save()
// Send email notification // Send email notification
if IsDevelopment() && user.ID == "4J6qpK1ve" { // if IsDevelopment() && user.ID == "4J6qpK1ve" {
subject := notification.Title // subject := notification.Title
html := HTMLEmailRenderer.Notification(notification) // html := HTMLEmailRenderer.Notification(notification)
err := SendEmail(user.Email, subject, html) // err := SendEmail(user.Email, subject, html)
if err != nil { // if err != nil {
fmt.Println(err) // fmt.Println(err)
} // }
} // }
// Send an event to the user's open tabs // Send an event to the user's open tabs
user.BroadcastEvent(&aero.Event{ user.BroadcastEvent(&aero.Event{