email_notification_new.go: do not return on pageTitleUpdate errors
This commit is contained in:
parent
52f8df5183
commit
982a574512
@ -128,8 +128,9 @@ func emailNotificationNew(d domain, path string, commenterHex string, commentHex
|
|||||||
if p.Title == "" {
|
if p.Title == "" {
|
||||||
p.Title, err = pageTitleUpdate(d.Domain, path)
|
p.Title, err = pageTitleUpdate(d.Domain, path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("cannot update/get page title to send email notification: %v", err)
|
// Not being able to update a page title isn't serious enough to skip an
|
||||||
return
|
// email notification.
|
||||||
|
p.Title = d.Domain
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user