From 9a9541809be275134429287e1e7262c29f4565a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 3 Jul 2018 04:58:34 +0000 Subject: [PATCH] Fix: Likes from OStatus got the gravity of comments --- src/Protocol/OStatus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'])) {