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'; }