aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-14 19:59:25 -0700
committerzotlabs <mike@macgirvin.com>2017-06-14 19:59:25 -0700
commit8b3d2c02e1af80159d18bddb049e93b4fb28c249 (patch)
treef4b60d32c14ae6153236221b65ccebfe8dbff1cd
parent1ac799f629d6f2d86618fdcda7519473d8121552 (diff)
downloadvolse-hubzilla-8b3d2c02e1af80159d18bddb049e93b4fb28c249.tar.gz
volse-hubzilla-8b3d2c02e1af80159d18bddb049e93b4fb28c249.tar.bz2
volse-hubzilla-8b3d2c02e1af80159d18bddb049e93b4fb28c249.zip
always transmit a valid uri
-rw-r--r--include/feedutils.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index f5cb12cd9..4a563ade7 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1510,6 +1510,10 @@ function atom_entry($item, $type, $author, $owner, $comment = false, $cid = 0, $
if(($item['parent'] != $item['id']) || ($item['parent_mid'] !== $item['mid']) || (($item['thr_parent'] !== '') && ($item['thr_parent'] !== $item['mid']))) {
$parent_item = (($item['thr_parent']) ? $item['thr_parent'] : $item['parent_mid']);
+ // ensure it's a legal uri and not just a message-id
+ if(! strpos($parent_item,':'))
+ $parent_item = 'X-ZOT:' . $parent_item;
+
$o .= '<thr:in-reply-to ref="' . xmlify($parent_item) . '" type="text/html" href="' . xmlify($item['plink']) . '" />' . "\r\n";
}