Merge pull request #5317 from annando/ostatus-like

Fix: Likes from OStatus got the gravity of comments
2022.09-rc
Tobias Diekershoff 2018-07-03 10:08:36 +02:00 zatwierdzone przez GitHub
commit 199361a562
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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