diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index b0ed1044..92848aa5 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -159,10 +159,10 @@ class MicropubClientController extends Controller 'contents' => $request->input('in-reply-to'), ]; } - if ($request->input('syndicate-to')) { - foreach ($request->input('syndicate-to') as $syn) { + if ($request->input('mp-syndicate-to')) { + foreach ($request->input('mp-syndicate-to') as $syn) { $multipart[] = [ - 'name' => 'syndicate-to[]', + 'name' => 'mp-syndicate-to[]', 'contents' => $syn, ]; } diff --git a/app/Services/NoteService.php b/app/Services/NoteService.php index b4da1df3..80e5cdb1 100644 --- a/app/Services/NoteService.php +++ b/app/Services/NoteService.php @@ -81,8 +81,8 @@ class NoteService } //from a micropub request $targets = array_pluck(config('syndication.targets'), 'uid', 'service.name'); - if (is_string($request->input('syndicate-to'))) { - $service = array_search($request->input('syndicate-to')); + if (is_string($request->input('mp-syndicate-to'))) { + $service = array_search($request->input('mp-syndicate-to')); if ($service == 'Twitter') { dispatch(new SyndicateToTwitter($note)); } @@ -90,9 +90,9 @@ class NoteService dispatch(new SyndicateToFacebook($note)); } } - if (is_array($request->input('syndicate-to'))) { + if (is_array($request->input('mp-syndicate-to'))) { foreach ($targets as $service => $target) { - if (in_array($target, $request->input('syndicate-to'))) { + if (in_array($target, $request->input('mp-syndicate-to'))) { if ($service == 'Twitter') { dispatch(new SyndicateToTwitter($note)); } diff --git a/changelog.md b/changelog.md index 19aa3472..f03fa198 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version {next} + - Update `syndicate-to` property to `mp-syndicate-to` + ## Version 0.1.7 (2017-01-27) - Add a rel=me link to my own domain in my h-card.