]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/OnePoll.php
Merge pull request #5294 from annando/use-gravity
[friendica.git] / src / Worker / OnePoll.php
index f3784d3ffa3367b12896c89f54a42860a98b374d..eaef5f252d4404a01217a7618abe3f64e924a498 100644 (file)
@@ -435,17 +435,13 @@ class OnePoll
                                                                $refs_arr = explode(' ', $raw_refs);
                                                                if (count($refs_arr)) {
                                                                        for ($x = 0; $x < count($refs_arr); $x ++) {
-//                                                                             $refs_arr[$x] = "'" . Email::msgid2iri(str_replace(['<', '>', ' '],['', '', ''],dbesc($refs_arr[$x]))) . "'";
                                                                                $refs_arr[$x] = Email::msgid2iri(str_replace(['<', '>', ' '],['', '', ''], $refs_arr[$x]));
                                                                        }
                                                                }
                                                                $condition = ['uri' => $refs_arr, 'uid' => $importer_uid];
                                                                $parent = Item::selectFirst(['parent-uri'], $condition);
                                                                if (DBM::is_result($parent)) {
-                                                                       logger('Parent found with matching uri. ' . json_encode($refs_arr), LOGGER_DEBUG);
                                                                        $datarray['parent-uri'] = $parent['parent-uri'];  // Set the parent as the top-level item
-                                                               } else {
-                                                                       logger('No parent found with matching uri. ' . json_encode($refs_arr), LOGGER_DEBUG);
                                                                }
                                                        }
 
@@ -478,10 +474,7 @@ class OnePoll
                                                                $params = ['order' => ['created' => true]];
                                                                $parent = Item::selectFirst(['parent-uri'], $condition, $params);
                                                                if (DBM::is_result($parent)) {
-                                                                       logger('Parent found with matching title. ' . $datarray['title'], LOGGER_DEBUG);
                                                                        $datarray['parent-uri'] = $parent['parent-uri'];
-                                                               } else {
-                                                                       logger('No parent found with matching title. ' . $datarray['title'], LOGGER_DEBUG);
                                                                }
                                                        }