aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2021-09-18 01:40:50 +0200
committerGitHub <noreply@github.com>2021-09-17 19:40:50 -0400
commit0ffad31b9285044fc8a2b424a1fe65522cc287d6 (patch)
treeb4d183480410296505ddcae1da722b6728bdc0a3 /routers/web
parentba2e600d17bab8870f4ab33eb5816dff19a060c3 (diff)
downloadgitea-0ffad31b9285044fc8a2b424a1fe65522cc287d6.tar.gz
gitea-0ffad31b9285044fc8a2b424a1fe65522cc287d6.zip
Notifications API: respond with updated notifications (#17064)
* notifications api: return updated notifications in response * make generate-swagger * openapi fix Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/user/notification.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go
index a444669b74..ec3395cbc1 100644
--- a/routers/web/user/notification.go
+++ b/routers/web/user/notification.go
@@ -160,7 +160,7 @@ func NotificationStatusPost(c *context.Context) {
return
}
- if err := models.SetNotificationStatus(notificationID, c.User, status); err != nil {
+ if _, err := models.SetNotificationStatus(notificationID, c.User, status); err != nil {
c.ServerError("SetNotificationStatus", err)
return
}