From 26de25382ec6f0942bd55d1557688111cae65ff6 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 5 Oct 2016 17:47:25 +0100 Subject: [PATCH] Use the correct method --- app/Jobs/SyndicateToTwitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/SyndicateToTwitter.php b/app/Jobs/SyndicateToTwitter.php index 4a5c756a..0e0bf3f7 100644 --- a/app/Jobs/SyndicateToTwitter.php +++ b/app/Jobs/SyndicateToTwitter.php @@ -52,8 +52,8 @@ class SyndicateToTwitter implements ShouldQueue $lng = trim($location[1]); } if ($this->note->place) { - $lat = $this->note->place->getLat(); - $lng = $this->note->place->getLng(); + $lat = $this->note->place->location->getLat(); + $lng = $this->note->place->location->getLng(); } if (isset($lat) && isset($lng)) { $tweetOpts['lat'] = $lat;