Skip to content

Commit 341fb17

Browse files
authored
add extra mail address (#17)
1 parent c7413ad commit 341fb17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,12 @@ class IssueHook extends gitbucket.core.plugin.IssueHook
179179
.filterNot (_.isGroupAccount)
180180
.filterNot (LDAPUtil.isDummyMailAddress)
181181
.filterNot (isDisableEmailNotification)
182-
.map (_.mailAddress)
183-
)
182+
.map (account =>
183+
account.mailAddress :: getAccountExtraMailAddresses(account.userName)
184+
)
185+
)
186+
.flatten
187+
.distinct
184188
}
185189

186190
}

0 commit comments

Comments
 (0)