diff options
author | redmatrix <git@macgirvin.com> | 2016-07-19 22:57:23 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-19 22:57:23 -0700 |
commit | a3e5307b93ea524781abd885e26a5d6c8f5c4c54 (patch) | |
tree | 2ef9760d8cd31ddc4a610e8a6f59efab5de1cbe7 /Zotlabs/Module/Item.php | |
parent | ae6256f95a45dce44672bdc2e832c5c5757e0f20 (diff) | |
download | volse-hubzilla-a3e5307b93ea524781abd885e26a5d6c8f5c4c54.tar.gz volse-hubzilla-a3e5307b93ea524781abd885e26a5d6c8f5c4c54.tar.bz2 volse-hubzilla-a3e5307b93ea524781abd885e26a5d6c8f5c4c54.zip |
fix the forum detection in include/zot
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 919ee3c4a..f0cb82286 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -528,11 +528,11 @@ class Item extends \Zotlabs\Web\Controller { if((! $parent) && (get_pconfig($profile_uid,'system','tagifonlyrecip')) && (substr_count($str_contact_allow,'<') == 1) && ($str_group_allow == '') && ($str_contact_deny == '') && ($str_group_deny == '')) { - $x = q("select abook_id, abook_their_perms from abook where abook_xchan = '%s' and abook_channel = %d limit 1", + $x = q("select abook_id, abconfig.v from abook left join abconfig on abook_xchan = abconfig.xchan and abook_channel = abconfig.chan and cat= 'their_perms' and abconfig.k = 'tag_deliver' and abconfig.v = 1 and abook_xchan = '%s' and abook_channel = %d limit 1", dbesc(str_replace(array('<','>'),array('',''),$str_contact_allow)), intval($profile_uid) ); - if($x && ($x[0]['abook_their_perms'] & PERMS_W_TAGWALL)) + if($x) $body .= "\n\n@group+" . $x[0]['abook_id'] . "\n"; } |