]> git.mxchange.org Git - friendica.git/commitdiff
when viewing network group, show my private conversations to the group
authorFriendika <info@friendika.com>
Sun, 1 May 2011 04:53:51 +0000 (21:53 -0700)
committerFriendika <info@friendika.com>
Sun, 1 May 2011 04:53:51 +0000 (21:53 -0700)
mod/network.php

index ae991e6ee7a175aa91c45fe3076e9de2e8a51409..8846b808642e75891ab00c98f1b117c986f08e94 100644 (file)
@@ -137,7 +137,7 @@ function network_content(&$a, $update = 0) {
                                notice( t('Group is empty'));
                }
 
-               $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( $contact_str )) ";
+               $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND ( `contact-id` IN ( $contact_str ) OR `allow_gid` REGEXP '<" . intval($group) . ">' )) ";
                $o = '<h2>' . t('Group: ') . $r[0]['name'] . '</h2>' . $o;
        }
        elseif($cid) {