diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 9978d985..858822fb 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -160,10 +160,10 @@ class MicropubClientController extends Controller 'contents' => $request->input('reply-to'), ]; } - if ($request->input('mp-syndicate-to')) { - foreach ($request->input('mp-syndicate-to') as $syn) { + if ($request->input('syndicate-to')) { + foreach ($request->input('syndicate-to') as $syn) { $multipart[] = [ - 'name' => 'mp-syndicate-to', + 'name' => 'syndicate-to', 'contents' => $syn, ]; } @@ -320,14 +320,14 @@ class MicropubClientController extends Controller if ($syndicationTargets === null) { return; } - $mpSyndicateTo = []; + $syndicateTo = []; $parts = explode(';', $syndicationTargets); foreach ($parts as $part) { $target = explode('=', $part); - $mpSyndicateTo[] = urldecode($target[1]); + $syndicateTo[] = urldecode($target[1]); } - if (count($mpSyndicateTo) > 0) { - return $mpSyndicateTo; + if (count($syndicateTo) > 0) { + return $syndicateTo; } } } diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index 1a941125..b348ade1 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -109,7 +109,7 @@ class MicropubController extends Controller //we have a valid token, is `syndicate-to` set? if ($request->input('q') === 'syndicate-to') { $content = http_build_query([ - 'mp-syndicate-to' => 'twitter.com/jonnybarnes', + 'syndicate-to' => 'twitter.com/jonnybarnes', ]); return (new Response($content, 200)) diff --git a/changelog.md b/changelog.md index fd1aef94..fee9ef97 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## Version {next} - Automatically send webmentions + - Change `mp-syndicate-to` to `syndicate-to` ## Version 0.0.4 (2016-06-21) - Move bower components into their own subdir diff --git a/resources/views/templates/new-note-form.blade.php b/resources/views/templates/new-note-form.blade.php index 310159ee..17d976eb 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