From 092ef64ac78d7535788ba03b0d940fa311e0934d Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 29 Jul 2013 16:51:44 -0700 Subject: tgroup_check wasn't allowing comments through. --- include/items.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/items.php b/include/items.php index 6b99fc6b1..bb4bd42e3 100755 --- a/include/items.php +++ b/include/items.php @@ -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; -- cgit v1.2.3