api: do not batch email notifications
Closes https://gitlab.com/commento/commento/issues/234
This commit is contained in:
@@ -149,6 +149,6 @@ func commentNewHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
bodyMarshal(w, response{"success": true, "commentHex": commentHex, "state": state, "html": html})
|
||||
if smtpConfigured {
|
||||
go emailNotificationNew(d, path, commenterHex, commentHex, *x.ParentHex, state)
|
||||
go emailNotificationNew(d, path, commenterHex, commentHex, html, *x.ParentHex, state)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user