X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=23ebf4fe4858f40a7f46f2bde0a6251852edb09d;hb=e7be87df93895de47414a5a788cd6487adb98a29;hp=90ab5a3aabbddf46c0db8d1f26ea98655ee3c7fe;hpb=c5558cc4595263e2654bb614f54d61273d79bc5f;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index 90ab5a3aab..23ebf4fe48 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -3,7 +3,7 @@ * @file mod/subthread.php */ use Friendica\App; -use Friendica\Core\Addon; +use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\System; @@ -13,8 +13,6 @@ use Friendica\Util\Security; use Friendica\Util\Strings; use Friendica\Util\XML; -require_once 'include/items.php'; - function subthread_content(App $a) { if (!local_user() && !remote_user()) { @@ -151,8 +149,8 @@ EOT; $arr['id'] = $post_id; - Addon::callHooks('post_local_end', $arr); + Hook::callAll('post_local_end', $arr); - killme(); + exit(); }