]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4603 from annando/pleroma-like
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 15 Mar 2018 21:42:53 +0000 (17:42 -0400)
committerGitHub <noreply@github.com>
Thu, 15 Mar 2018 21:42:53 +0000 (17:42 -0400)
OStatus: Likes from Pleroma will now work

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);
                        }