X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpoke.php;h=b8a1ba7bfd1fcee0b935d10ff4d45ed04addb2ac;hb=cb72a5fd3bb693d4de002169c7d7daad7f8d7840;hp=f1bad7742b5ebedb6810920a37e171b05d732eca;hpb=5e60fa8210b502797209de770780d6d7ba81b86c;p=friendica.git diff --git a/mod/poke.php b/mod/poke.php index f1bad7742b..b8a1ba7bfd 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -14,19 +14,16 @@ */ use Friendica\App; -use Friendica\Core\Addon; +use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\Renderer; use Friendica\Core\System; -use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\Model\Item; use Friendica\Util\Strings; use Friendica\Util\XML; -require_once 'include/items.php'; - function poke_init(App $a) { if (!local_user()) { @@ -131,9 +128,9 @@ function poke_init(App $a) $arr['object'] .= XML::escape('' . "\n"); $arr['object'] .= '' . "\n"; - $item_id = Item::insert($arr); + Item::insert($arr); - Addon::callHooks('post_local_end', $arr); + Hook::callAll('post_local_end', $arr); return; } @@ -145,9 +142,6 @@ function poke_content(App $a) return; } - $name = ''; - $id = ''; - if (empty($_GET['c'])) { return; }