Merge pull request #4968 from taratatach/4967-use-https-for-osm-locator
Use https to load the location from OSM
This commit is contained in:
commit
553a5258a8
3 changed files with 3 additions and 2 deletions
|
|
@ -55,6 +55,7 @@ Read more in [#4249](https://github.com/diaspora/diaspora/pull/4249) and [#4883]
|
|||
* Redirect to the stream when switching the mobile publisher to desktop [#4806](https://github.com/diaspora/diaspora/issues/4806)
|
||||
* Parsing mention witch contain in username special characters [#4919](https://github.com/diaspora/diaspora/pull/4919)
|
||||
* Do not show your own hovercard [#4724](https://github.com/diaspora/diaspora/issues/4724)
|
||||
* Hit Nominatim via https [#4967](https://github.com/diaspora/diaspora/issues/4967)
|
||||
|
||||
## Features
|
||||
* You can report a single post or comment by clicking the correct icon in the controler section [#4517](https://github.com/diaspora/diaspora/pull/4517) [#4781](https://github.com/diaspora/diaspora/pull/4781)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ OSM.Locator = function(){
|
|||
navigator.geolocation.getCurrentPosition(function(position) {
|
||||
lat=position.coords.latitude;
|
||||
lon=position.coords.longitude;
|
||||
var display_name =$.getJSON("http://nominatim.openstreetmap.org/reverse?format=json&lat="+lat+"&lon="+lon+"&addressdetails=3", function(data){
|
||||
var display_name =$.getJSON("https://nominatim.openstreetmap.org/reverse?format=json&lat="+lat+"&lon="+lon+"&addressdetails=3", function(data){
|
||||
return callback(data.display_name, position.coords);
|
||||
});
|
||||
},errorGettingPosition);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ describe("Locator", function(){
|
|||
};
|
||||
|
||||
$.getJSON = function(url, myCallback){
|
||||
if(url == "http://nominatim.openstreetmap.org/reverse?format=json&lat=1&lon=2&addressdetails=3")
|
||||
if(url == "https://nominatim.openstreetmap.org/reverse?format=json&lat=1&lon=2&addressdetails=3")
|
||||
{
|
||||
return myCallback({ display_name: 'locator address' })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue