From: Michael Date: Tue, 3 Jul 2018 04:58:34 +0000 (+0000) Subject: Fix: Likes from OStatus got the gravity of comments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a9541809be275134429287e1e7262c29f4565a2;p=friendica.git Fix: Likes from OStatus got the gravity of comments --- diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 4538d36dfa..5a30bfd2c3 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -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'])) {