From 769e0a3ea6455cb908cd7167d651024ce5c7eee3 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 12 Jan 2017 02:27:09 -0200 Subject: Notifications: mark as read/unread and pin (#629) * Use relative URLs * Notifications - Mark as read/unread * Feature of pinning a notification * On view issue, do not mark as read a pinned notification --- models/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/issue.go') diff --git a/models/issue.go b/models/issue.go index c0377e6348..ff7df26c9d 100644 --- a/models/issue.go +++ b/models/issue.go @@ -448,7 +448,7 @@ func (issue *Issue) ReadBy(userID int64) error { return err } - if err := setNotificationStatusRead(x, userID, issue.ID); err != nil { + if err := setNotificationStatusReadIfUnread(x, userID, issue.ID); err != nil { return err } -- cgit v1.2.3