Fix an issue in the parseSyndicationTargets
This commit is contained in:
parent
da61bf5a07
commit
532caabc5e
2 changed files with 7 additions and 2 deletions
|
@ -320,9 +320,11 @@ class MicropubClientController extends Controller
|
|||
}
|
||||
$syndicateTo = [];
|
||||
$data = json_decode($syndicationTargets, true);
|
||||
foreach ($syndicateTo['syndicate-to'] as $syn) {
|
||||
if (array_key_exists('syndicate-to', $data)) {
|
||||
foreach ($data['syndicate-to'] as $syn) {
|
||||
$syndicateTo[] = $syn['uid'];
|
||||
}
|
||||
}
|
||||
if (count($syndicateTo) > 0) {
|
||||
return $syndicateTo;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
## Version 0.0.8.1 (2016-07-13)
|
||||
- Fix anh issue in the syndication target parsing method
|
||||
|
||||
## Version 0.0.8 (2016-07-13)
|
||||
- Allow new notes to be made by a JSON request from a micropub client
|
||||
- Add DependencyCI support
|
||||
|
|
Loading…
Add table
Reference in a new issue