summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2015-05-11 17:42:06 +0200
committerAaron Parecki <aaron@parecki.com>2015-05-11 17:42:06 +0200
commitcb93a9925be700e5e1b0314f6cf66b19e7da5a34 (patch)
tree7d2cda6a0e4575a658104cdb298cfd9cd77f97d7 /controllers
parent475175da5fd90162930acc123712a529f809f961 (diff)
adds a simple publish status UI to show errors
Diffstat (limited to 'controllers')
-rw-r--r--controllers/editor.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controllers/editor.php b/controllers/editor.php
index caac4a3..15d65ef 100644
--- a/controllers/editor.php
+++ b/controllers/editor.php
@@ -21,7 +21,8 @@ $app->post('/editor/publish', function() use($app) {
$app->response()['Content-type'] = 'application/json';
$app->response()->body(json_encode([
- 'location' => $r['location']
+ 'location' => $r['location'],
+ 'response' => trim(htmlspecialchars($r['response']))
]));
}
});