diff options
author | Aaron Parecki <aaron@parecki.com> | 2015-05-10 16:49:22 +0200 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2015-05-10 16:49:22 +0200 |
commit | 3b7d766c31314a3d42d651b8c8f643ff8d6e15bd (patch) | |
tree | dec9c9cbed6cb077ada14754f556c21eb51da2c8 /lib/helpers.php | |
parent | 3dc97d7478781550aa1a878120082a871988f02e (diff) |
do the micropub post and redirect after it's created!medium
Diffstat (limited to 'lib/helpers.php')
-rw-r--r-- | lib/helpers.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |