Merge branch 'release/0.5.11'

This commit is contained in:
Jonny Barnes 2017-06-11 16:53:41 +01:00
commit f531a80fd9
3 changed files with 17 additions and 11 deletions

View file

@ -2,6 +2,7 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use Log;
use Ramsey\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use App\{Media, Note, Place}; use App\{Media, Note, Place};
use Illuminate\Http\{Request, Response}; use Illuminate\Http\{Request, Response};
@ -58,6 +59,8 @@ class MicropubController extends Controller
'error_description' => 'The provided token did not pass validation', 'error_description' => 'The provided token did not pass validation',
], 400); ], 400);
} }
// Log the request
Log::debug($request);
if ($tokenData->hasClaim('scope')) { if ($tokenData->hasClaim('scope')) {
if (($request->input('h') == 'entry') || ($request->input('type')[0] == 'h-entry')) { if (($request->input('h') == 'entry') || ($request->input('type')[0] == 'h-entry')) {
if (stristr($tokenData->getClaim('scope'), 'create') === false) { if (stristr($tokenData->getClaim('scope'), 'create') === false) {

View file

@ -1,5 +1,8 @@
# Changelog # Changelog
## Version 0.5.11 (2017-06-11)
- to help with micropub clients, log requests made to micropub endpoint
## Version 0.5.10 (2017-06-09) ## Version 0.5.10 (2017-06-09)
- Add a link to instagram account - Add a link to instagram account
- Add syndication feeds for articles/notes, supporting RSS/Atom/JSON (issue#52) - Add syndication feeds for articles/notes, supporting RSS/Atom/JSON (issue#52)

22
composer.lock generated
View file

@ -8,16 +8,16 @@
"packages": [ "packages": [
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.29.0", "version": "3.29.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "ad2206be87d722de5a52b3d1b0d6549fe2980fc7" "reference": "1f19f74913a31fac8e98c24cef26040a16c88a33"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/ad2206be87d722de5a52b3d1b0d6549fe2980fc7", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/1f19f74913a31fac8e98c24cef26040a16c88a33",
"reference": "ad2206be87d722de5a52b3d1b0d6549fe2980fc7", "reference": "1f19f74913a31fac8e98c24cef26040a16c88a33",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -84,7 +84,7 @@
"s3", "s3",
"sdk" "sdk"
], ],
"time": "2017-06-07T22:44:10+00:00" "time": "2017-06-09T18:57:25+00:00"
}, },
{ {
"name": "barnabywalters/mf-cleaner", "name": "barnabywalters/mf-cleaner",
@ -3334,16 +3334,16 @@
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.3.0", "version": "v1.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" "reference": "f29dca382a6485c3cbe6379f0c61230167681937"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f29dca382a6485c3cbe6379f0c61230167681937",
"reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", "reference": "f29dca382a6485c3cbe6379f0c61230167681937",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3355,7 +3355,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.3-dev" "dev-master": "1.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -3389,7 +3389,7 @@
"portable", "portable",
"shim" "shim"
], ],
"time": "2016-11-14T01:06:16+00:00" "time": "2017-06-09T14:24:12+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/process",