Skip to content

Commit 8548161

Browse files
committed
fix/notication: fix duplicate mention user and ref tension.
1 parent a4e71c9 commit 8548161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graph/notifications.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ func PushEventNotifications(notif model.EventNotif) error {
170170
} else if len(m) > 0 {
171171
notif.Rootnameid = m[0]["rootnameid"].(string)
172172
notif.Receiverid = m[0]["receiverid"].(string)
173-
notif.Msg, _ = m[0]["message"].(string)
174173
notif.Title = m[0]["title"].(string)
174+
notif.Msg, _ = m[0]["message"].(string)
175175

176-
if notif.Msg != "" {
176+
if notif.Msg != "" && notif.HasEvent(model.TensionEventCommentPushed) {
177177
// Mentioned users
178178
err = UpdateWithMentionnedUser(notif.Msg, notif.Receiverid, users)
179179
if err != nil { return err }

0 commit comments

Comments
 (0)