diff options
author | friendica <info@friendica.com> | 2013-07-29 16:51:44 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-29 16:51:44 -0700 |
commit | 092ef64ac78d7535788ba03b0d940fa311e0934d (patch) | |
tree | 2b45ad0bcc2edf6ac9a2dcd572a1f08395ed655f | |
parent | ca5abc02473b88a04479b4d95c06a29885f53f02 (diff) | |
download | volse-hubzilla-092ef64ac78d7535788ba03b0d940fa311e0934d.tar.gz volse-hubzilla-092ef64ac78d7535788ba03b0d940fa311e0934d.tar.bz2 volse-hubzilla-092ef64ac78d7535788ba03b0d940fa311e0934d.zip |
tgroup_check wasn't allowing comments through.
-rwxr-xr-x | include/items.php | 11 |
1 files changed, 9 insertions, 2 deletions
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; |