Posting works via AJAX now
[tt-rss-micropub.git] / init.php
index 863608c88cf68e8ab2035e011f61ea5dc6642c83..0f9a2bb8725c4383b6381f5aaaf96e93c61b2177 100644 (file)
--- a/init.php
+++ b/init.php
@@ -87,7 +87,6 @@ class Micropub extends Plugin implements IHandler
         if (!count($accounts)) {
             return $article;
         }
         if (!count($accounts)) {
             return $article;
         }
-        array_shift($accounts);
         ob_start();
         include __DIR__ . '/commentform.phtml';
         $html = ob_get_clean();
         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,
             [
                 'code'     => intval($code),
                 'location' => $location,
+                'message'  => 'Post created',
             ]
         );
         exit();
             ]
         );
         exit();