Fix an issue in the parseSyndicationTargets

This commit is contained in:
Jonny Barnes 2016-07-13 16:39:08 +01:00
parent da61bf5a07
commit 532caabc5e
2 changed files with 7 additions and 2 deletions

View file

@ -320,8 +320,10 @@ class MicropubClientController extends Controller
} }
$syndicateTo = []; $syndicateTo = [];
$data = json_decode($syndicationTargets, true); $data = json_decode($syndicationTargets, true);
foreach ($syndicateTo['syndicate-to'] as $syn) { if (array_key_exists('syndicate-to', $data)) {
$syndicateTo[] = $syn['uid']; foreach ($data['syndicate-to'] as $syn) {
$syndicateTo[] = $syn['uid'];
}
} }
if (count($syndicateTo) > 0) { if (count($syndicateTo) > 0) {
return $syndicateTo; return $syndicateTo;

View file

@ -1,5 +1,8 @@
# Changelog # 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) ## Version 0.0.8 (2016-07-13)
- Allow new notes to be made by a JSON request from a micropub client - Allow new notes to be made by a JSON request from a micropub client
- Add DependencyCI support - Add DependencyCI support