]> git.mxchange.org Git - friendica.git/commitdiff
make feeds work with comment likes/dislikes
authorfriendica <info@friendica.com>
Sat, 23 Jun 2012 13:13:11 +0000 (06:13 -0700)
committerfriendica <info@friendica.com>
Sat, 23 Jun 2012 13:13:11 +0000 (06:13 -0700)
include/items.php

index 87aaeaa3237663008f4dbccb210f14ef5d994439..5bbceb1982b4daeef95b55bcce02d15a0c23730a 100755 (executable)
@@ -2931,7 +2931,7 @@ 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'])) {
+       if(($item['parent'] != $item['id']) || ($item['parent-uri'] !== $item['uri']) || ($item['thr-parent'])) {
                $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";
        }