$id = intval($_GET['id']);
$storage = new Storage();
-$comment = $storage->getComment($id);
+$comment = $storage->getJsonComment($id);
if ($comment === null) {
header('HTTP/1.0 404 Not Found');
header('Content-Type: text/plain');
'url' => Urls::full(Urls::user($rowUser->user_id)),
'imageurl' => Urls::userImg($rowUser),
),
- 'replyUrl' => Urls::full(
- '/reply.php?url=' . urlencode(Urls::full($rowComment->comment_id))
+ 'postUrl' => Urls::full(Urls::comment($rowComment->comment_id)),
+ 'replyUrl' => Urls::reply(
+ Urls::full(Urls::comment($rowComment->comment_id))
),
);
$vars['htmlContent'] = $htmlContent;
}
+if (isset($linkbackEndpoint) && $linkbackEndpoint) {
+ header('X-Pingback: ' . $linkbackEndpoint);
+ header('Link: <' . $linkbackEndpoint . '>; rel="webmention"');
+}
+
render($template, $vars);
?>