aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/shared
diff options
context:
space:
mode:
authorPanagiotis "Ivory" Vasilopoulos <git@n0toose.net>2023-09-29 14:57:06 +0000
committerGitHub <noreply@github.com>2023-09-29 14:57:06 +0000
commit65e09a303ea46bee59126e36dd2ebb03508a3fad (patch)
tree7cad9286fec97578460521eb2a2e8f9edb004003 /routers/web/shared
parentc3b7231966e629fbe4e5b9073f0781c715aa4600 (diff)
downloadgitea-65e09a303ea46bee59126e36dd2ebb03508a3fad.tar.gz
gitea-65e09a303ea46bee59126e36dd2ebb03508a3fad.zip
Introduce fixes and more rigorous tests for 'Show on a map' feature (#26803)
This change introduces a fix for the PR #26214 to set the UserLocationMapURL correctly.
Diffstat (limited to 'routers/web/shared')
-rw-r--r--routers/web/shared/user/header.go1
1 files changed, 1 insertions, 0 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)