]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Likes from OStatus got the gravity of comments
authorMichael <heluecht@pirati.ca>
Tue, 3 Jul 2018 04:58:34 +0000 (04:58 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 3 Jul 2018 04:58:34 +0000 (04:58 +0000)
src/Protocol/OStatus.php

index 4538d36dfa11676844c858661493d1ddf81c0c89..5a30bfd2c3da0c08c4dc91af4cacaba510d4d8e7 100644 (file)
@@ -341,7 +341,7 @@ class OStatus
                $header["type"] = "remote";
                $header["wall"] = 0;
                $header["origin"] = 0;
-               $header["gravity"] = GRAVITY_PARENT;
+               $header["gravity"] = GRAVITY_COMMENT;
 
                $first_child = $doc->firstChild->tagName;
 
@@ -683,9 +683,9 @@ class OStatus
                        }
 
                        $item["type"] = 'remote-comment';
-                       $item["gravity"] = GRAVITY_COMMENT;
                } else {
                        $item["parent-uri"] = $item["uri"];
+                       $item["gravity"] = GRAVITY_PARENT;
                }
 
                if (($item['author-link'] != '') && !empty($item['protocol'])) {