From: Christian Weiske Date: Tue, 23 May 2017 21:14:00 +0000 (+0200) Subject: Posting works via AJAX now X-Git-Tag: v0.1.0~9 X-Git-Url: https://git.cweiske.de/tt-rss-micropub.git/commitdiff_plain/f8e675e602a11a874c375c4d725edd2accfe4b5a Posting works via AJAX now --- diff --git a/commentform.phtml b/commentform.phtml index adf0af2..8d07af0 100644 --- a/commentform.phtml +++ b/commentform.phtml @@ -1,32 +1,63 @@ -
-

Reply to this post

-
- - - - +

Reply to this post

+
+ + + + + + + + + - + -
+ +
-
+
+ +
-
- or - - Reply with Quill - + diff --git a/init.php b/init.php index 863608c..0f9a2bb 100644 --- a/init.php +++ b/init.php @@ -87,7 +87,6 @@ class Micropub extends Plugin implements IHandler if (!count($accounts)) { return $article; } - array_shift($accounts); ob_start(); include __DIR__ . '/commentform.phtml'; $html = ob_get_clean(); @@ -239,6 +238,7 @@ class Micropub extends Plugin implements IHandler [ 'code' => intval($code), 'location' => $location, + 'message' => 'Post created', ] ); exit();