]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/OnePoll.php
Merge pull request #4288 from zeroadam/Addon
[friendica.git] / src / Worker / OnePoll.php
index 9a4ce757a854a9220c51f8e33063de4658680650..293cd265e26038be91332ee0896694f3580ce1fc 100644 (file)
@@ -14,14 +14,13 @@ use dba;
 
 require_once 'include/dba.php';
 
-Class OnePoll
+class OnePoll
 {
        public static function execute($contact_id = 0, $command = '') {
                global $a;
 
                require_once 'include/datetime.php';
                require_once 'include/items.php';
-               require_once 'include/queue_fn.php';
 
                logger('start');
 
@@ -532,11 +531,6 @@ Class OnePoll
 
                                                        $stored_item = item_store($datarray);
 
-                                                       $condition = ['parent-uri' => $datarray['parent-uri'], 'uid' => $importer_uid];
-                                                       dba::update('item', ['last-child' => false], $condition);
-
-                                                       dba::update('item', ['last-child' => true], ['id' => $stored_item]);
-
                                                        switch ($mailconf['action']) {
                                                                case 0:
                                                                        logger("Mail: Seen before ".$msg_uid." for ".$mailconf['user'].". Doing nothing.", LOGGER_DEBUG);