]> git.mxchange.org Git - friendica.git/commitdiff
OStatus: Likes from Pleroma will now work
authorMichael <heluecht@pirati.ca>
Thu, 15 Mar 2018 21:33:28 +0000 (21:33 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 15 Mar 2018 21:33:28 +0000 (21:33 +0000)
src/Protocol/OStatus.php

index 26909102f78e7230bd36c7c9db2e268b2c41230d..b900e34cac5144bc78f7cda04ece540844cf0101 100644 (file)
@@ -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);
                        }