summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/web/shared/user/header.go1
-rw-r--r--routers/web/user/profile.go1
2 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/shared/user/header.go b/routers/web/shared/user/header.go
index 16d9321e80..2934f8206e 100644
--- a/routers/web/shared/user/header.go
+++ b/routers/web/shared/user/header.go
@@ -32,6 +32,7 @@ func PrepareContextForProfileBigAvatar(ctx *context.Context) {
ctx.Data["IsFollowing"] = ctx.Doer != nil && user_model.IsFollowing(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail && ctx.ContextUser.Email != "" && ctx.IsSigned && !ctx.ContextUser.KeepEmailPrivate
+ ctx.Data["UserLocationMapURL"] = setting.Service.UserLocationMapURL
// Show OpenID URIs
openIDs, err := user_model.GetUserOpenIDs(ctx, ctx.ContextUser.ID)
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go
index f52ceb1a64..48a4b94c19 100644
--- a/routers/web/user/profile.go
+++ b/routers/web/user/profile.go
@@ -52,7 +52,6 @@ func userProfile(ctx *context.Context) {
ctx.Data["Title"] = ctx.ContextUser.DisplayName()
ctx.Data["PageIsUserProfile"] = true
- ctx.Data["UserLocationMapURL"] = setting.Service.UserLocationMapURL
// prepare heatmap data
if setting.Service.EnableUserHeatmap {