diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-10-18 19:23:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 19:23:05 +0800 |
commit | ea619b39b2f2a3c1fb5ad28ebd4a269b2f822111 (patch) | |
tree | ef101ad2b39dc5be1744e4488bcdd5beab16e45d /models/review.go | |
parent | dd62ca7ba9b49e799a8bea896cff1b209f813b7e (diff) | |
download | gitea-ea619b39b2f2a3c1fb5ad28ebd4a269b2f822111.tar.gz gitea-ea619b39b2f2a3c1fb5ad28ebd4a269b2f822111.zip |
Add notification interface and refactor UI notifications (#5085)
* add notification interface and refactor UI notifications
* add missing methods on notification interface and notifiy only issue status really changed
* implement NotifyPullRequestReview for ui notification
Diffstat (limited to 'models/review.go')
-rw-r--r-- | models/review.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/review.go b/models/review.go index 3326ea0549..dd8743586d 100644 --- a/models/review.go +++ b/models/review.go @@ -239,6 +239,8 @@ func getCurrentReview(e Engine, reviewer *User, issue *Issue) (*Review, error) { if len(reviews) == 0 { return nil, ErrReviewNotExist{} } + reviews[0].Reviewer = reviewer + reviews[0].Issue = issue return reviews[0], nil } |