From 3b7d766c31314a3d42d651b8c8f643ff8d6e15bd Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 10 May 2015 16:49:22 +0200 Subject: do the micropub post and redirect after it's created! --- lib/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/helpers.php b/lib/helpers.php index 6bbe327..073d1e2 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -74,7 +74,7 @@ function micropub_post_for_user(&$user, $params) { // Now send to the micropub endpoint $r = micropub_post($user->micropub_endpoint, $params, $user->micropub_access_token); - $user->last_micropub_response = json_encode($r); + $user->last_micropub_response = substr(json_encode($r), 0, 1024); $user->last_micropub_response_date = date('Y-m-d H:i:s'); // Check the response and look for a "Location" header containing the URL -- cgit v1.2.3