fix superblock for comments
This commit is contained in:
@@ -712,6 +712,8 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
||||
$threads = array();
|
||||
foreach($items as $item) {
|
||||
|
||||
// Check for any blocked authors
|
||||
|
||||
if($arr_blocked) {
|
||||
$blocked = false;
|
||||
foreach($arr_blocked as $b) {
|
||||
@@ -724,6 +726,18 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check all the kids too
|
||||
|
||||
if($arr_blocked && $item['children']) {
|
||||
for($d = 0; $d < count($item['children']); $d ++) {
|
||||
foreach($arr_blocked as $b) {
|
||||
if(($b) && ($item['children'][$d]['author_xchan'] == $b))
|
||||
$item['children'][$d]['author_blocked'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Can we put this after the visibility check?
|
||||
like_puller($a,$item,$alike,'like');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user