Notes created via the micropub client can now have associated places
Squashed commit of the following: commit d98a19ac59d29540f9eeca473013da4e52ad99eb Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 5 16:09:33 2016 +0100 Get places working again, location info will add a place to a note commit 98ec16174cb4431e6e0e13f5f1d3303ceafcd7b1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 5 16:08:32 2016 +0100 gulp build assets from js commit 2e7e50a6f6f7f8b129bb472d92a38801575020a8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 5 16:07:21 2016 +0100 Use full URIs instead of slugs for places
This commit is contained in:
parent
d924f9916e
commit
ac7f002293
8 changed files with 33 additions and 22 deletions
|
@ -166,17 +166,11 @@ class MicropubClientController extends Controller
|
|||
];
|
||||
}
|
||||
}
|
||||
if ($request->input('confirmlocation')) {
|
||||
$latLng = $request->input('location');
|
||||
$geoURL = 'geo:' . str_replace(' ', '', $latLng);
|
||||
$multipart[] = [
|
||||
'name' => 'location',
|
||||
'contents' => $geoURL,
|
||||
];
|
||||
if ($request->input('address') != '') {
|
||||
if ($request->input('location')) {
|
||||
if ($request->input('location') !== 'no-location') {
|
||||
$multipart[] = [
|
||||
'name' => 'place_name',
|
||||
'contents' => $request->input('address'),
|
||||
'name' => 'location',
|
||||
'contents' => $request->input('location')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue