forked from GNUsocial/gnu-social
Use passed-in lat long in geocode.php
Don't rewrite the lat-long for a location in geocode.php.
This commit is contained in:
parent
a1c9874a61
commit
1b7cc3393a
@ -52,12 +52,7 @@ class GeocodeAction extends Action
|
||||
}
|
||||
$this->lat = $this->trimmed('lat');
|
||||
$this->lon = $this->trimmed('lon');
|
||||
$location = Location::fromLatLon($this->lat, $this->lon);
|
||||
if ($location) {
|
||||
$this->location = Location::fromId($location->location_id, $location->location_ns);
|
||||
$this->lat = $this->location->lat;
|
||||
$this->lon = $this->location->lon;
|
||||
}
|
||||
$this->location = Location::fromLatLon($this->lat, $this->lon);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user