diff options
author | redmatrix <git@macgirvin.com> | 2016-05-12 20:02:16 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-12 20:02:16 -0700 |
commit | f2fc7d25c5f940135a7d9068f1813c22862b3f19 (patch) | |
tree | a2fdb73b23ba484072e47712dc1f0aea2b4059ae | |
parent | 781716277ba382e0415e9188c252c1b79093ed6b (diff) | |
download | volse-hubzilla-f2fc7d25c5f940135a7d9068f1813c22862b3f19.tar.gz volse-hubzilla-f2fc7d25c5f940135a7d9068f1813c22862b3f19.tar.bz2 volse-hubzilla-f2fc7d25c5f940135a7d9068f1813c22862b3f19.zip |
remove the rarely if ever used filter_insecure() function. We will provide this functionality in other ways.
-rwxr-xr-x | include/items.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/include/items.php b/include/items.php index bef04237b..10a5b4ab9 100755 --- a/include/items.php +++ b/include/items.php @@ -33,7 +33,6 @@ function collect_recipients($item, &$private_envelope) { $allow_people = expand_acl($item['allow_cid']); $allow_groups = expand_groups(expand_acl($item['allow_gid'])); - $allow_groups = filter_insecure($item['uid'],$allow_groups); $recipients = array_unique(array_merge($allow_people,$allow_groups)); @@ -140,46 +139,6 @@ function collect_recipients($item, &$private_envelope) { return $recipients; } -/** - * If channel is configured to filter insecure members of privacy groups - * (those whose networks leak privacy via email notifications or other criteria) - * remove them from any privacy groups (collections) that were included in a post. - * They can still be addressed individually. - * Networks may need to be added or removed from this list as circumstances change. - * - * Update: this may need to be the default, which will force people to opt-in to - * sending stuff privately to insecure platforms. - * - * @param int $channel_id - * @param array $arr - * @return array containing the sane xchan_hashes - */ -function filter_insecure($channel_id, $arr) { - $insecure_nets = " and not xchan_network in ('diaspora', 'friendica-over-diaspora') "; - - $ret = array(); - - if((! intval(get_pconfig($channel_id, 'system', 'filter_insecure_privacy_groups'))) || (! $arr)) - return $arr; - - $str = ''; - foreach($arr as $rr) { - if(strlen($str)) - $str .= ','; - - $str .= "'" . dbesc($rr) . "'"; - } - $r = q("select xchan_hash from xchan where xchan_hash in ($str) $insecure_nets"); - if($r) { - foreach($r as $rr) { - $ret[] = $rr['xchan_hash']; - } - } - - return $ret; -} - - function comments_are_now_closed($item) { if($item['comments_closed'] !== NULL_DATE) { $d = datetime_convert(); |