Fix marking a notification as read
This commit is contained in:
parent
7eb2d1ccb2
commit
7c4923cd38
|
@ -68,6 +68,7 @@ func GetNotificationsForUser(s *xorm.Session, notifiableID int64, limit, start i
|
|||
func CanMarkNotificationAsRead(s *xorm.Session, notification *DatabaseNotification, notifiableID int64) (can bool, err error) {
|
||||
can, err = s.
|
||||
Where("notifiable_id = ? AND id = ?", notifiableID, notification.ID).
|
||||
NoAutoCondition().
|
||||
Get(notification)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue