X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=0082021df575c8376fa27c56b4885d6ab735ddf7;hb=f10481796778811d3ea4fab803508be3ffde84e4;hp=105cf60feb7f1e3d3a3ba458c3b37625a149f29c;hpb=ec898ecd2a6a79e1e8a6a9dda94e90393eb08487;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index 105cf60feb..0082021df5 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -8,8 +8,8 @@ use Friendica\Core\L10n; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Model\Item; +use Friendica\Util\Security; -require_once 'include/security.php'; require_once 'include/items.php'; function subthread_content(App $a) { @@ -32,7 +32,7 @@ function subthread_content(App $a) { $owner_uid = $item['uid']; - if (!can_write_wall($owner_uid)) { + if (!Security::canWriteToUserWall($owner_uid)) { return; }