X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flockview.php;h=35c4b043329ae4284250d95a398636407a3d5d8e;hb=9c507e9577286c757df1946441f30e529082a3c8;hp=0d87e1551034d24739e867f79388d185f762cd10;hpb=8ac018813c080b135120730b4a5aa02b12327e81;p=friendica.git diff --git a/mod/lockview.php b/mod/lockview.php index 0d87e15510..35c4b04332 100644 --- a/mod/lockview.php +++ b/mod/lockview.php @@ -3,7 +3,7 @@ * @file mod/lockview.php */ use Friendica\App; -use Friendica\Core\Addon; +use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Database\DBA; use Friendica\Model\Item; @@ -19,11 +19,11 @@ function lockview_content(App $a) } if (!$item_id) { - killme(); + exit(); } if (!in_array($type, ['item','photo','event'])) { - killme(); + exit(); } $fields = ['uid', 'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid']; @@ -37,24 +37,25 @@ function lockview_content(App $a) } if (!DBA::isResult($item)) { - killme(); + exit(); } - Addon::callHooks('lockview_content', $item); + Hook::callAll('lockview_content', $item); if ($item['uid'] != local_user()) { echo L10n::t('Remote privacy information not available.') . '
'; - killme(); + exit(); } - if ($item['private'] == 1 + if (isset($item['private']) + && $item['private'] == 1 && empty($item['allow_cid']) && empty($item['allow_gid']) && empty($item['deny_cid']) && empty($item['deny_gid'])) { echo L10n::t('Remote privacy information not available.') . '
'; - killme(); + exit(); } $allowed_users = expand_acl($item['allow_cid']); @@ -110,6 +111,6 @@ function lockview_content(App $a) } echo $o . implode(', ', $l); - killme(); + exit(); }