diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-09-30 06:17:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 07:17:39 +0300 |
commit | 3bbdce26012d02d3b5082f8774ce432ad9c2990b (patch) | |
tree | b0a25803038e034af1c232a582dd5baed80c8696 /modules/structs/notifications.go | |
parent | ac10c4ecc2364bc994cc649e27b7789da04730ba (diff) | |
download | gitea-3bbdce26012d02d3b5082f8774ce432ad9c2990b.tar.gz gitea-3bbdce26012d02d3b5082f8774ce432ad9c2990b.zip |
API: add html urls to notification subjects (#17178)
* API: add html urls to notification subjects
* add "Repository"
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/structs/notifications.go')
-rw-r--r-- | modules/structs/notifications.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/structs/notifications.go b/modules/structs/notifications.go index 675dcf76b1..3fd9088ce3 100644 --- a/modules/structs/notifications.go +++ b/modules/structs/notifications.go @@ -21,11 +21,13 @@ 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 NotifySubjectType `json:"type" binding:"In(Issue,Pull,Commit)"` - State StateType `json:"state"` + Title string `json:"title"` + URL string `json:"url"` + LatestCommentURL string `json:"latest_comment_url"` + HTMLURL string `json:"html_url"` + LatestCommentHTMLURL string `json:"latest_comment_html_url"` + Type NotifySubjectType `json:"type" binding:"In(Issue,Pull,Commit,Repository)"` + State StateType `json:"state"` } // NotificationCount number of unread notifications |