email_notification_new.go: do not return on pageTitleUpdate errors

This commit is contained in:
Adhityaa Chandrasekar 2019-08-21 21:14:19 -07:00
parent 52f8df5183
commit 982a574512

View File

@ -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
} }
} }