Merge branch 'release/0.0.13.6'
This commit is contained in:
commit
0042ddb57f
2 changed files with 13 additions and 10 deletions
|
@ -45,20 +45,20 @@ class SyndicateToTwitter implements ShouldQueue
|
||||||
$tweetOpts['in_reply_to_status_id'] = $noteprep->replyTweetId($this->note->in_reply_to);
|
$tweetOpts['in_reply_to_status_id'] = $noteprep->replyTweetId($this->note->in_reply_to);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if ($this->note->location) {
|
if ($this->note->location) {
|
||||||
$explode = explode(':', $this->note->location);
|
$explode = explode(':', $this->note->location);
|
||||||
$location = (count($explode) == 2) ? explode(',', $explode[0]) : explode(',', $explode);
|
$location = (count($explode) == 2) ? explode(',', $explode[0]) : explode(',', $explode);
|
||||||
$lat = trim($location[0]);
|
$lat = trim($location[0]);
|
||||||
$long = trim($location[1]);
|
$lng = trim($location[1]);
|
||||||
$jsonPlaceId = Twitter::getGeoReverse(array('lat' => $lat, 'long' => $long, 'format' => 'json'));
|
}
|
||||||
$parsePlaceId = json_decode($jsonPlaceId);
|
if ($this->note->place) {
|
||||||
$placeId = $parsePlaceId->result->places[0]->id ?: null;
|
$lat = $this->note->place->getLat();
|
||||||
|
$lng = $this->note->place->getLng();
|
||||||
|
}
|
||||||
|
if (isset($lat) && isset($lng)) {
|
||||||
$tweetOpts['lat'] = $lat;
|
$tweetOpts['lat'] = $lat;
|
||||||
$tweetOpts['long'] = $long;
|
$tweetOpts['long'] = $lng;
|
||||||
if ($placeId) {
|
}
|
||||||
$tweetOpts['place_id'] = $placeId;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
$mediaItems = $this->note->getMedia();
|
$mediaItems = $this->note->getMedia();
|
||||||
if (count($mediaItems) > 0) {
|
if (count($mediaItems) > 0) {
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Version 0.0.13.6 (2016-10-05)
|
||||||
|
- Syndicate lat/lng values (issue#22)
|
||||||
|
|
||||||
## Version 0.0.13.5 (2016-10-05)
|
## Version 0.0.13.5 (2016-10-05)
|
||||||
- Places can now be added to a new note created via micropub
|
- Places can now be added to a new note created via micropub
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue