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)
$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",
);
if (!DBA::isResult($r)) {
- logger('poke: no contact ' . $contact_id);
+ Logger::log('poke: no contact ' . $contact_id);
return;
}
$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);