aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-23 06:04:56 -0700
committerfriendica <info@friendica.com>2012-06-23 06:04:56 -0700
commitf55e8e831c3becb0bf981d637179226550b9907c (patch)
treee213b780132063169dbec1d97913f326b13e15ec
parent49360b0a646d78ba8a5dbfee039f3d4929e0c4d0 (diff)
downloadvolse-hubzilla-f55e8e831c3becb0bf981d637179226550b9907c.tar.gz
volse-hubzilla-f55e8e831c3becb0bf981d637179226550b9907c.tar.bz2
volse-hubzilla-f55e8e831c3becb0bf981d637179226550b9907c.zip
typo
-rwxr-xr-xinclude/items.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index a0dd1c815..87aaeaa32 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2931,8 +2931,10 @@ function atom_entry($item,$type,$author,$owner,$comment = false,$cid = 0) {
if(strlen($item['owner-name']))
$o .= atom_author('dfrn:owner',$item['owner-name'],$item['owner-link'],80,80,$item['owner-avatar']);
- if(($item['parent'] != $item['id']) || ($item['parent-uri'] !== $item['uri']))
- $o .= '<thr:in-reply-to ref="' . xmlify($item['parent-uri']) . '" type="text/html" href="' . xmlify($a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['parent']) . '" />' . "\r\n";
+ if(($item['parent'] != $item['id']) || ($item['parent-uri'] !== $item['uri'])) {
+ $parent_item = (($item['thr-parent']) ? $item['thr-parent'] : $item['parent-uri']);
+ $o .= '<thr:in-reply-to ref="' . xmlify($parent_item) . '" type="text/html" href="' . xmlify($a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['parent']) . '" />' . "\r\n";
+ }
$o .= '<id>' . xmlify($item['uri']) . '</id>' . "\r\n";
$o .= '<title>' . xmlify($item['title']) . '</title>' . "\r\n";