Improve h-card check in mircopub request
This commit is contained in:
parent
50e4848e46
commit
9589863e42
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class MicropubController extends Controller
|
||||||
], 201)->header('Location', $location);
|
], 201)->header('Location', $location);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request()->input('h') == 'card' || request()->input('type')[0] == 'h-card') {
|
if (request()->input('h') == 'card' || request()->input('type.0') == 'h-card') {
|
||||||
if (stristr($tokenData->getClaim('scope'), 'create') === false) {
|
if (stristr($tokenData->getClaim('scope'), 'create') === false) {
|
||||||
return $this->insufficientScopeResponse();
|
return $this->insufficientScopeResponse();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue