Provide censorship.
This commit is contained in:
parent
a23af1f5f7
commit
ad2c8a4cb7
@ -431,14 +431,19 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $
|
|||||||
|
|
||||||
$arr_blocked = null;
|
$arr_blocked = null;
|
||||||
|
|
||||||
if(local_user()) {
|
if(local_user())
|
||||||
$str_blocked = get_pconfig(local_user(),'system','blocked');
|
$str_blocked = get_pconfig(local_user(),'system','blocked');
|
||||||
|
if(! local_user() && ($mode == 'network')) {
|
||||||
|
$sys = get_sys_channel();
|
||||||
|
$id = $sys['channel_id'];
|
||||||
|
$str_blocked = get_pconfig($id,'system','blocked');
|
||||||
|
}
|
||||||
|
|
||||||
if($str_blocked) {
|
if($str_blocked) {
|
||||||
$arr_blocked = explode(',',$str_blocked);
|
$arr_blocked = explode(',',$str_blocked);
|
||||||
for($x = 0; $x < count($arr_blocked); $x ++)
|
for($x = 0; $x < count($arr_blocked); $x ++)
|
||||||
$arr_blocked[$x] = trim($arr_blocked[$x]);
|
$arr_blocked[$x] = trim($arr_blocked[$x]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$profile_owner = 0;
|
$profile_owner = 0;
|
||||||
|
Reference in New Issue
Block a user