X-Git-Url: https://git.cweiske.de/anoweco.git/blobdiff_plain/ca522c29a1cc10f665130d21d45ede99ddaa8ac7..43f8f35bc5bdeec439329b14a30707f925c491ed:/www/comment.php diff --git a/www/comment.php b/www/comment.php index 43dbd2e..df39c3c 100644 --- a/www/comment.php +++ b/www/comment.php @@ -38,8 +38,9 @@ $vars = array( '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)) ), ); @@ -56,5 +57,10 @@ if ($rowComment->comment_type == 'like') { $vars['htmlContent'] = $htmlContent; } +if (isset($linkbackEndpoint) && $linkbackEndpoint) { + header('X-Pingback: ' . $linkbackEndpoint); + header('Link: <' . $linkbackEndpoint . '>; rel="webmention"'); +} + render($template, $vars); ?>