summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-10-23 12:54:13 -0500
committerzeripath <art27@cantab.net>2019-10-23 18:54:13 +0100
commit3e61a9628c4d8866207b6e9fe620bad7e08d30d4 (patch)
tree69651527079f1107fbbe425824b6c74520bc9621 /routers
parentdbd9d8dd54fd3b0ff7b02ae7b7da8369654e3725 (diff)
downloadgitea-3e61a9628c4d8866207b6e9fe620bad7e08d30d4.tar.gz
gitea-3e61a9628c4d8866207b6e9fe620bad7e08d30d4.zip
Improve OGP (#8637)
* Improve OGP * Ensure Repo is loaded when checking Pull info Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/pull.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 4001e3a4f8..4b73571e66 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -242,6 +242,10 @@ func checkPullInfo(ctx *context.Context) *models.Issue {
ctx.ServerError("LoadPoster", err)
return nil
}
+ if err := issue.LoadRepo(); err != nil {
+ ctx.ServerError("LoadRepo", err)
+ return nil
+ }
ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
ctx.Data["Issue"] = issue