git.cweiske.de
/
anoweco.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
send linkback when a post is created
[anoweco.git]
/
www
/
micropub.php
diff --git
a/www/micropub.php
b/www/micropub.php
index 0dd476a17f877b41bc9975471addeb8d1f633f50..e028782695fa5ea686b464fa2f125763eb620984 100644
(file)
--- a/
www/micropub.php
+++ b/
www/micropub.php
@@
-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)));