summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-01-12 02:27:09 -0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-12 12:27:09 +0800
commit769e0a3ea6455cb908cd7167d651024ce5c7eee3 (patch)
tree55db340bdd5aa03cd5455df6d045007e7afdb5be /models/issue.go
parentcbf2a967c58780ee23ff66fff1b6699f9f765294 (diff)
downloadgitea-769e0a3ea6455cb908cd7167d651024ce5c7eee3.tar.gz
gitea-769e0a3ea6455cb908cd7167d651024ce5c7eee3.zip
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
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go2
1 files changed, 1 insertions, 1 deletions
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
}