From 71123d5a31a03c3d4c9678500bcb3e9e8b950f81 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 19 May 2017 10:05:39 +0100 Subject: [PATCH] Search the syndication targets array properly --- app/Http/Controllers/MicropubController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index 2aba67cc..4d3f9f8e 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -98,7 +98,7 @@ class MicropubController extends Controller $data['syndicate'] = []; $targets = array_pluck(config('syndication.targets'), 'uid', 'service.name'); if (is_string($request->input('mp-syndicate-to'))) { - $service = array_search($request->input('mp-syndicate-to')); + $service = array_search($request->input('mp-syndicate-to'), $targets); if ($service == 'Twitter') { $data['syndicate'][] = 'twitter'; }