aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2013-08-21 22:19:38 +0200
committerChristian Vogeley <christian.vogeley@hotmail.de>2013-08-21 22:19:38 +0200
commit056ed00a4cea6175eb57781569a77648ce7d3382 (patch)
tree5b5a4f3469bb8fb6b3d3368795ed60d8a6441682 /include/conversation.php
parenta944a879b1e6ebd8b3d278b86ea4404ba5b7aa81 (diff)
parentd8ef1417fb2ff8d736e4392c118c51c63dc66b1d (diff)
downloadvolse-hubzilla-056ed00a4cea6175eb57781569a77648ce7d3382.tar.gz
volse-hubzilla-056ed00a4cea6175eb57781569a77648ce7d3382.tar.bz2
volse-hubzilla-056ed00a4cea6175eb57781569a77648ce7d3382.zip
Merge remote-tracking branch 'upstream/master'
Update
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 6d551a5c9..9dab5931b 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -137,7 +137,7 @@ function localize_item(&$item){
case ACTIVITY_OBJ_NOTE:
default:
$post_type = t('status');
- if($obj['id'] != $item['mid'])
+ if($obj['mid'] != $obj['parent_mid'])
$post_type = t('comment');
break;
}
@@ -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');