]> git.mxchange.org Git - friendica.git/commitdiff
Remove top-level parent check from Protocol\OStatus
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 17 Nov 2020 22:53:03 +0000 (17:53 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 17 Nov 2020 22:54:07 +0000 (17:54 -0500)
- It's done in Item::insert instead
- Address part of https://github.com/friendica/friendica/issues/9252#issuecomment-729171051

src/Protocol/OStatus.php

index 9d9e10f7a3175976629a0c845bea5708f02edec7..b8724acc7ff78192007e946f8243c94ba3d6401f 100644 (file)
@@ -521,12 +521,6 @@ class OStatus
                                                        Logger::log("Item with uri ".self::$itemlist[0]['uri']." will be imported since the thread contains posts or shares.", Logger::DEBUG);
                                                }
                                        }
-                               } else {
-                                       // But we will only import complete threads
-                                       $valid = Item::exists(['uid' => $importer["uid"], 'uri' => self::$itemlist[0]['parent-uri']]);
-                                       if ($valid) {
-                                               Logger::log("Item with uri ".self::$itemlist[0]["uri"]." belongs to parent ".self::$itemlist[0]['thr-parent']." of user ".$importer["uid"].". It will be imported.", Logger::DEBUG);
-                                       }
                                }
 
                                if ($valid) {