tgroup_check wasn't allowing comments through.
This commit is contained in:
parent
ca5abc0247
commit
092ef64ac7
@ -2058,10 +2058,17 @@ function tgroup_check($uid,$item) {
|
||||
$mention = false;
|
||||
|
||||
// check that the message originated elsewhere and is a top-level post
|
||||
// or is a followup and we have already accepted the top level post
|
||||
|
||||
if($arr['mid'] != $arr['parent_mid'])
|
||||
if($arr['mid'] != $arr['parent_mid']) {
|
||||
$r = q("select id from item where mid = '%s' and uid = %d limit 1",
|
||||
dbesc($arr['parent_mid']),
|
||||
intval($uid)
|
||||
);
|
||||
if($r)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
}
|
||||
if(! perm_is_allowed($uid,$item['author_xchan'],'tag_deliver'))
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user