aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-20 19:51:58 -0700
committerfriendica <info@friendica.com>2013-08-20 19:51:58 -0700
commit02a36948685737afdbbb9a292a338b304bb5cc04 (patch)
tree60782bb707ae774b9c3e19f4208abeacb5fbda4d /include/conversation.php
parentcd5fdbcb48a2e05198bb9daaf0753e8218ea4285 (diff)
downloadvolse-hubzilla-02a36948685737afdbbb9a292a338b304bb5cc04.tar.gz
volse-hubzilla-02a36948685737afdbbb9a292a338b304bb5cc04.tar.bz2
volse-hubzilla-02a36948685737afdbbb9a292a338b304bb5cc04.zip
fix superblock for comments
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index aade06b8a..9dab5931b 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -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');