summaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-21 01:10:53 +0200
committerGitHub <noreply@github.com>2020-09-20 19:10:53 -0400
commit2dbca92a0f145ddf6d0e3d4487be28071f6fd792 (patch)
treeadbf05dd475f3504683cddb95e52ad42aa7210ce /modules/structs
parent3f9eb93cc6f7de012d25ec17be510a448a6f6042 (diff)
downloadgitea-2dbca92a0f145ddf6d0e3d4487be28071f6fd792.tar.gz
gitea-2dbca92a0f145ddf6d0e3d4487be28071f6fd792.zip
API: NotificationSubject show Issue/Pull State (#12901)
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/notifications.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/structs/notifications.go b/modules/structs/notifications.go
index b6c9774a97..8daa6de168 100644
--- a/modules/structs/notifications.go
+++ b/modules/structs/notifications.go
@@ -21,10 +21,11 @@ type NotificationThread struct {
// NotificationSubject contains the notification subject (Issue/Pull/Commit)
type NotificationSubject struct {
- Title string `json:"title"`
- URL string `json:"url"`
- LatestCommentURL string `json:"latest_comment_url"`
- Type string `json:"type" binding:"In(Issue,Pull,Commit)"`
+ Title string `json:"title"`
+ URL string `json:"url"`
+ LatestCommentURL string `json:"latest_comment_url"`
+ Type string `json:"type" binding:"In(Issue,Pull,Commit)"`
+ State StateType `json:"state"`
}
// NotificationCount number of unread notifications