Disabled E-Mail notifications in dev mode
This commit is contained in:
parent
e53d7288ba
commit
7f4534f03e
16
arn/User.go
16
arn/User.go
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user