From 9d9e3577bcafd7a75112f274dbd357d309d71423 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 19 May 2017 10:07:43 +0100 Subject: [PATCH] Form the micropub JSON correctly --- app/Http/Controllers/MicropubClientController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 9d6f8d6d..91d4eb5a 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -206,16 +206,16 @@ class MicropubClientController extends Controller $json['properties'] = ['content' => [$request->input('content')]]; if ($request->input('in-reply-to') != '') { - $json['properties']['in-reply-to'] = [$request->input('in-reply-to')]; + $json['properties']['in-reply-to'][] = $request->input('in-reply-to'); } if ($request->input('mp-syndicate-to')) { foreach ($request->input('mp-syndicate-to') as $syn) { - $json['properties']['mp-syndicate-to'] = [$syn]; + $json['properties']['mp-syndicate-to'][] = $syn; } } if ($request->input('location')) { if ($request->input('location') !== 'no-location') { - $json['properties']['location'] = [$request->input('location')]; + $json['properties']['location'][] = $request->input('location'); } } if ($request->input('media')) {