diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-15 19:14:07 +0800 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-15 12:14:07 +0100 |
commit | 2b3e931cde3e3d70b69202164f35fc6f2c609ade (patch) | |
tree | dd519a5741642dde99433028d0e7d0e9da7b67c9 /routers/repo | |
parent | 4e566df1c694e47908e59a6db163e5a98d144b83 (diff) | |
download | gitea-2b3e931cde3e3d70b69202164f35fc6f2c609ade.tar.gz gitea-2b3e931cde3e3d70b69202164f35fc6f2c609ade.zip |
Migrate reactions when migrating repository from github (#9599)
* Migrate reactions when migrating repository from github
* fix missed sleep
* fix tests
* update reactions when external user binding
* Fix test
* fix tests
* change the copy head
* fix test
* fix migrator add/delete reaction
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index afc115c6e2..2fb42b0f22 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1608,7 +1608,7 @@ func ChangeCommentReaction(ctx *context.Context, form auth.ReactionForm) { } // Reload new reactions comment.Reactions = nil - if err = comment.LoadReactions(); err != nil { + if err = comment.LoadReactions(ctx.Repo.Repository); err != nil { log.Info("comment.LoadReactions: %s", err) break } @@ -1622,7 +1622,7 @@ func ChangeCommentReaction(ctx *context.Context, form auth.ReactionForm) { // Reload new reactions comment.Reactions = nil - if err = comment.LoadReactions(); err != nil { + if err = comment.LoadReactions(ctx.Repo.Repository); err != nil { log.Info("comment.LoadReactions: %s", err) break } |