aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-29 16:51:44 -0700
committerfriendica <info@friendica.com>2013-07-29 16:51:44 -0700
commit092ef64ac78d7535788ba03b0d940fa311e0934d (patch)
tree2b45ad0bcc2edf6ac9a2dcd572a1f08395ed655f /include
parentca5abc02473b88a04479b4d95c06a29885f53f02 (diff)
downloadvolse-hubzilla-092ef64ac78d7535788ba03b0d940fa311e0934d.tar.gz
volse-hubzilla-092ef64ac78d7535788ba03b0d940fa311e0934d.tar.bz2
volse-hubzilla-092ef64ac78d7535788ba03b0d940fa311e0934d.zip
tgroup_check wasn't allowing comments through.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php11
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;