Skip to content

Commit 45c468f

Browse files
committed
(refs #12) Move toHtml call to outside of Future
1 parent ee3388a commit 45c468f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/gitbucket/notifications/service/NotificationsHook.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ class IssueHook extends gitbucket.core.plugin.IssueHook
158158
(implicit session: Session, context: Context): Unit = {
159159
val recipients = getRecipients(issue, context.loginAccount.get)
160160
val mailer = new Mailer(context.settings)
161+
val html = toHtml(markdown, repository)
161162
val f = Future {
162163
recipients.foreach { address =>
163-
mailer.send(address, subject, markdown, Some(toHtml(markdown, repository)), context.loginAccount)
164+
mailer.send(address, subject, markdown, Some(html), context.loginAccount)
164165
}
165166
"Notifications Successful."
166167
}

0 commit comments

Comments
 (0)