]> git.mxchange.org Git - friendica.git/blobdiff - mod/poke.php
Using Locks for Updating and writing last success to config
[friendica.git] / mod / poke.php
index 6ebb8632c18b3a24bc229b2c300fc1a8e346e97f..3eefeb9aba3f6620f0141c0ba4f10516b6f0bf3b 100644 (file)
 use Friendica\App;
 use Friendica\Core\Addon;
 use Friendica\Core\L10n;
+use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\Model\Item;
 
-require_once 'include/security.php';
 require_once 'include/items.php';
 
 function poke_init(App $a)
@@ -54,7 +54,7 @@ function poke_init(App $a)
        $parent = (x($_GET,'parent') ? intval($_GET['parent']) : 0);
 
 
-       logger('poke: verb ' . $verb . ' contact ' . $contact_id, LOGGER_DEBUG);
+       Logger::log('poke: verb ' . $verb . ' contact ' . $contact_id, Logger::DEBUG);
 
 
        $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
@@ -63,7 +63,7 @@ function poke_init(App $a)
        );
 
        if (!DBA::isResult($r)) {
-               logger('poke: no contact ' . $contact_id);
+               Logger::log('poke: no contact ' . $contact_id);
                return;
        }
 
@@ -129,9 +129,6 @@ function poke_init(App $a)
        $arr['object'] .= '</link></object>' . "\n";
 
        $item_id = Item::insert($arr);
-       if ($item_id) {
-               Worker::add(PRIORITY_HIGH, "Notifier", "tag", $item_id);
-       }
 
        Addon::callHooks('post_local_end', $arr);