git.cweiske.de
/
anoweco.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow linkback endpoint configuration
[anoweco.git]
/
www
/
comment.php
diff --git
a/www/comment.php
b/www/comment.php
index beaad9646510f850394067e7d1e54ab1ab2a4e8e..e3843610c9b1a555c21d8e47a389d0a1c50dcc96 100644
(file)
--- a/
www/comment.php
+++ b/
www/comment.php
@@
-58,5
+58,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);
?>