X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoke.php;h=3eefeb9aba3f6620f0141c0ba4f10516b6f0bf3b;hb=f2ca3e5be44192c486e8e3af2a993e065ad40a7d;hp=80d476005c06aa526350f48ac81d6a5173f2831d;hpb=7ee8bdafc53a88fe51f233e14169bb4af0d376ab;p=friendica.git diff --git a/mod/poke.php b/mod/poke.php index 80d476005c..3eefeb9aba 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -16,6 +16,7 @@ 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; @@ -53,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", @@ -62,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; } @@ -128,9 +129,6 @@ function poke_init(App $a) $arr['object'] .= '' . "\n"; $item_id = Item::insert($arr); - if ($item_id) { - Worker::add(PRIORITY_HIGH, "Notifier", "tag", $item_id); - } Addon::callHooks('post_local_end', $arr);