Fix marking a notification as read

This commit is contained in:
kolaente 2021-02-21 14:56:41 +01:00
parent 7eb2d1ccb2
commit 7c4923cd38
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -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
}