send linkback when a post is created
[anoweco.git] / www / micropub.php
index 0dd476a17f877b41bc9975471addeb8d1f633f50..e028782695fa5ea686b464fa2f125763eb620984 100644 (file)
@@ -83,8 +83,10 @@ function handleCreate($json, $token)
     }
 
     $storage = new Storage();
+    $lb      = new Linkback();
     try {
         $id = $storage->addComment($json, $userId);
+        $lb->ping($id);
 
         header('HTTP/1.0 201 Created');
         header('Location: ' . Urls::full(Urls::comment($id)));