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()
|
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{
|
||||||
|
Loading…
Reference in New Issue
Block a user