mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-24 11:02:42 +00:00
[FEAT] Use OpenStreetMap in USER_LOCATION_MAP_URL by default
Follow-up tod58c542579for Forgejo. By default, Gitea does not select any map service that can be used to introduce a 'Show this place on a map' button in the location field of a user profile. Before I tried upstreaming this change to Gitea, this was the case in Forgejo. This patch essentially recovers this functionality, which is nice for public-facing instances and communities. Links to original PRs: - https://codeberg.org/forgejo/forgejo/pulls/1076 - https://github.com/go-gitea/gitea/pull/26214 (cherry picked from commitbb187d5f61) (cherry picked from commitce02ef9078) (cherry picked from commit6b75c40e25) (cherry picked from commit6bc8e9f573) (cherry picked from commit063f8afdf7) (cherry picked from commitc5cc736b72) (cherry picked from commit7b1bb4bedc) (cherry picked from commit2a022dceb4) (cherry picked from commita946c142d2) (cherry picked from commit8a4ea0c7ab) (cherry picked from commit37bfb05b34) (cherry picked from commit28fdcd95a5) (cherry picked from commit65743be85d)
This commit is contained in:
parent
cd66dd3ca4
commit
a3d81d0728
2 changed files with 3 additions and 3 deletions
|
|
@ -188,7 +188,7 @@ func loadServiceFrom(rootCfg ConfigProvider) {
|
|||
Service.AllowCrossRepositoryDependencies = sec.Key("ALLOW_CROSS_REPOSITORY_DEPENDENCIES").MustBool(true)
|
||||
Service.DefaultAllowOnlyContributorsToTrackTime = sec.Key("DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME").MustBool(true)
|
||||
Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply." + Domain)
|
||||
Service.UserLocationMapURL = sec.Key("USER_LOCATION_MAP_URL").String()
|
||||
Service.UserLocationMapURL = sec.Key("USER_LOCATION_MAP_URL").MustString("https://www.openstreetmap.org/search?query=")
|
||||
Service.EnableUserHeatmap = sec.Key("ENABLE_USER_HEATMAP").MustBool(true)
|
||||
Service.AutoWatchNewRepos = sec.Key("AUTO_WATCH_NEW_REPOS").MustBool(true)
|
||||
Service.AutoWatchOnChanges = sec.Key("AUTO_WATCH_ON_CHANGES").MustBool(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue