]> source.dussan.org Git - gitea.git/commit
Extend Notifications API and return pinned notifications by default (#12164) (#12232)
authorzeripath <art27@cantab.net>
Mon, 13 Jul 2020 20:52:05 +0000 (21:52 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jul 2020 20:52:05 +0000 (21:52 +0100)
commit489e9162fc650c92c20c3c301845a1e772eca64e
treea0d58e73c33e2aa519a429dc9a92c2c34f4386cc
parent5e62137fe32151814a142751e15b2a7d6b824f0d
Extend Notifications API and return pinned notifications by default (#12164) (#12232)

Backport #12164

This PR extends the notifications API to allow specific notification statuses to be searched for and to allow setting of notifications to statuses other than read.

By default unread and pinned statuses will be returned when querying for notifications - however pinned statuses will not be marked as read.

Close #12152

Signed-off-by: Andrew Thornton art27@cantab.net
integrations/api_notification_test.go
integrations/eventsource_test.go
models/notification.go
routers/api/v1/notify/repo.go
routers/api/v1/notify/threads.go
routers/api/v1/notify/user.go
templates/swagger/v1_json.tmpl