Signed-off-by: Seongmin Lee git@boltless.me
+7
appview/notify/db/db.go
+7
appview/notify/db/db.go
···
13
"tangled.org/core/idresolver"
14
)
15
16
+
const (
17
+
maxMentions = 5
18
+
)
19
+
20
type databaseNotifier struct {
21
db *db.DB
22
res *idresolver.Resolver
···
425
issueId *int64,
426
pullId *int64,
427
) {
428
+
if eventType == models.NotificationTypeUserMentioned && len(recipients) > maxMentions {
429
+
recipients = recipients[:maxMentions]
430
+
}
431
recipientSet := make(map[syntax.DID]struct{})
432
for _, did := range recipients {
433
// everybody except actor themselves