Don't send admin emails on new cert photos
This commit is contained in:
parent
e70ede301f
commit
2be90b4a81
|
@ -190,21 +190,6 @@ func Certification() http.HandlerFunc {
|
||||||
log.Error("chat.MaybeDisconnectUser(%s#%d): %s", currentUser.Username, currentUser.ID, err)
|
log.Error("chat.MaybeDisconnectUser(%s#%d): %s", currentUser.Username, currentUser.ID, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify the admin email to check out this photo.
|
|
||||||
if cert.Status == models.CertificationPhotoPending {
|
|
||||||
if err := mail.Send(mail.Message{
|
|
||||||
To: config.Current.AdminEmail,
|
|
||||||
Subject: "New Certification Photo Needs Approval",
|
|
||||||
Template: "email/certification_admin.html",
|
|
||||||
Data: map[string]interface{}{
|
|
||||||
"User": currentUser,
|
|
||||||
"URL": config.Current.BaseURL + "/admin/photo/certification",
|
|
||||||
},
|
|
||||||
}); err != nil {
|
|
||||||
log.Error("Certification: failed to notify admins of pending photo: %s", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Log the change. Note the original IP and GeoIP insights - we once saw a spammer upload
|
// Log the change. Note the original IP and GeoIP insights - we once saw a spammer upload
|
||||||
// their cert photo from Nigeria, and before we could reject it, they removed and reuploaded
|
// their cert photo from Nigeria, and before we could reject it, they removed and reuploaded
|
||||||
// it from New York using a VPN. If it wasn't seen in real time, this might have slipped by.
|
// it from New York using a VPN. If it wasn't seen in real time, this might have slipped by.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user