From 64f4d1a47d6cd5d91a5fdc1a4602991e64713af2 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 10 Sep 2020 20:36:04 +0100 Subject: [PATCH] Set opengraph attributes on org pages Fix #12778 Signed-off-by: Andrew Thornton --- routers/org/home.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/org/home.go b/routers/org/home.go index fa61218d3fd15..0a9f176bdc715 100644 --- a/routers/org/home.go +++ b/routers/org/home.go @@ -32,6 +32,7 @@ func Home(ctx *context.Context) { return } + ctx.Data["PageIsUserProfile"] = true ctx.Data["Title"] = org.DisplayName() var orderBy models.SearchOrderBy @@ -119,6 +120,7 @@ func Home(ctx *context.Context) { return } + ctx.Data["Owner"] = org ctx.Data["Repos"] = repos ctx.Data["Total"] = count ctx.Data["MembersTotal"] = membersCount