fix anwser token and database issus
This commit is contained in:
@@ -128,7 +128,7 @@ func PublishFollowUp(ctx context.Context, pageUser *db.User, question *db.Questi
|
||||
// 邮件通知提问箱主人(开启邮件提醒时)
|
||||
shared.SafeGo(func() {
|
||||
if pageUser.Notify == db.NotifyTypeEmail {
|
||||
if err := mail.SendNewFollowUpMail(pageUser.Email, pageUser.Domain, question.ID, question.Content, f.Content); err != nil {
|
||||
if err := mail.SendNewFollowUpMail(pageUser.Email, pageUser.Domain, question.ID, question.Content, f.Content, question.Token); err != nil {
|
||||
logrus.WithContext(stdctx.Background()).WithError(err).Error("Failed to send new follow up mail to user")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user