X-Git-Url: https://git.cweiske.de/anoweco.git/blobdiff_plain/eb59a11b5dea806a6c06f5ba803a45fdd5b63b88..43f8f35bc5bdeec439329b14a30707f925c491ed:/www/comment.php?ds=sidebyside diff --git a/www/comment.php b/www/comment.php index beaad96..df39c3c 100644 --- a/www/comment.php +++ b/www/comment.php @@ -39,9 +39,8 @@ $vars = array( 'imageurl' => Urls::userImg($rowUser), ), 'postUrl' => Urls::full(Urls::comment($rowComment->comment_id)), - 'replyUrl' => Urls::full( - '/reply.php?url=' - . urlencode(Urls::full(Urls::comment($rowComment->comment_id))) + 'replyUrl' => Urls::reply( + Urls::full(Urls::comment($rowComment->comment_id)) ), ); @@ -58,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); ?>