Use the correct method
This commit is contained in:
parent
0042ddb57f
commit
26de25382e
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ class SyndicateToTwitter implements ShouldQueue
|
||||||
$lng = trim($location[1]);
|
$lng = trim($location[1]);
|
||||||
}
|
}
|
||||||
if ($this->note->place) {
|
if ($this->note->place) {
|
||||||
$lat = $this->note->place->getLat();
|
$lat = $this->note->place->location->getLat();
|
||||||
$lng = $this->note->place->getLng();
|
$lng = $this->note->place->location->getLng();
|
||||||
}
|
}
|
||||||
if (isset($lat) && isset($lng)) {
|
if (isset($lat) && isset($lng)) {
|
||||||
$tweetOpts['lat'] = $lat;
|
$tweetOpts['lat'] = $lat;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue