From d584a10d1e5ab35ea40231c203cb00dd39eadd9e Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 13 Jul 2016 17:32:10 +0100 Subject: [PATCH] Better syndication parsing --- app/Http/Controllers/MicropubClientController.php | 5 ++++- changelog.md | 3 +++ resources/views/templates/new-note-form.blade.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 7b69eeb0..adac3d33 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -322,7 +322,10 @@ class MicropubClientController extends Controller $data = json_decode($syndicationTargets, true); if (array_key_exists('syndicate-to', $data)) { foreach ($data['syndicate-to'] as $syn) { - $syndicateTo[] = $syn['uid']; + $syndicateTo[] = [ + 'target' => $syn['uid'], + 'name' => $syn['name'], + ]; } } if (count($syndicateTo) > 0) { diff --git a/changelog.md b/changelog.md index 338bd998..dc11a1e3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version {next} + - Improve syndication parsing to allow better name display on new note form + ## Version 0.0.8.1 (2016-07-13) - Fix anh issue in the syndication target parsing method diff --git a/resources/views/templates/new-note-form.blade.php b/resources/views/templates/new-note-form.blade.php index 17d976eb..bd26b37a 100644 --- a/resources/views/templates/new-note-form.blade.php +++ b/resources/views/templates/new-note-form.blade.php @@ -5,7 +5,7 @@ @if ($micropub === true) - @if($syndication)@endif + @if($syndication)@endif Refresh Syndication Targets
@endif