Provide censorship.

This commit is contained in:
Thomas Willingham 2014-12-10 15:34:18 +00:00
parent a23af1f5f7
commit ad2c8a4cb7

View File

@ -431,13 +431,18 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $
$arr_blocked = null;
if(local_user()) {
if(local_user())
$str_blocked = get_pconfig(local_user(),'system','blocked');
if($str_blocked) {
if(! local_user() && ($mode == 'network')) {
$sys = get_sys_channel();
$id = $sys['channel_id'];
$str_blocked = get_pconfig($id,'system','blocked');
}
if($str_blocked) {
$arr_blocked = explode(',',$str_blocked);
for($x = 0; $x < count($arr_blocked); $x ++)
$arr_blocked[$x] = trim($arr_blocked[$x]);
}
$arr_blocked[$x] = trim($arr_blocked[$x]);
}