From 972c2c86ef118b06e6e9c3b4d9bb5f7bf0269aad Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 15 Mar 2018 21:33:28 +0000 Subject: [PATCH] OStatus: Likes from Pleroma will now work --- src/Protocol/OStatus.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 26909102f7..b900e34cac 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -673,9 +673,11 @@ class OStatus self::fetchConversation($item['conversation-href'], $item['conversation-uri']); } - if (isset($item["parent-uri"]) && ($related != '')) { + if (isset($item["parent-uri"])) { if (!dba::exists('item', ['uid' => $importer["uid"], 'uri' => $item['parent-uri']])) { - self::fetchRelated($related, $item["parent-uri"], $importer); + if ($related != '') { + self::fetchRelated($related, $item["parent-uri"], $importer); + } } else { logger('Reply with URI '.$item["uri"].' already existed for user '.$importer["uid"].'.', LOGGER_DEBUG); } -- 2.39.5