diff options
author | 6543 <6543@obermui.de> | 2019-12-28 00:43:56 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-27 18:43:56 -0500 |
commit | 4ee97465e97ae6b9d3ac6ea57246f67715246afe (patch) | |
tree | e332e1e4c954536e393eb33eb85073f26687bd6b /routers | |
parent | e64880ef0767a6921498401e041bf9ad8dfa9a6f (diff) | |
download | gitea-4ee97465e97ae6b9d3ac6ea57246f67715246afe.tar.gz gitea-4ee97465e97ae6b9d3ac6ea57246f67715246afe.zip |
[Fix] AllowedReaction code (#9518)
* optimize
* CI.restart()
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 1 | ||||
-rw-r--r-- | routers/repo/pull.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index ae0c2d3b8f..4810eecdc6 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -705,7 +705,6 @@ func ViewIssue(ctx *context.Context) { } } ctx.Data["IssueWatch"] = iw - ctx.Data["AllowedReactions"] = setting.UI.Reactions issue.RenderedContent = string(markdown.Render([]byte(issue.Content), ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas())) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 932e99290b..418c2e9438 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -423,7 +423,6 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.Compare ctx.Data["NumCommits"] = compareInfo.Commits.Len() ctx.Data["NumFiles"] = compareInfo.NumFiles - ctx.Data["AllowedReactions"] = setting.UI.Reactions return compareInfo } |