diff options
author | Mario <mario@mariovavti.com> | 2021-05-28 08:11:40 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-05-28 08:11:40 +0000 |
commit | 0718ac514d2421a96ab191f874a0cd8b120a5a78 (patch) | |
tree | 61640e142ee1412b2fa2856d1ec09807cf4be0bc /include/text.php | |
parent | d289994da4b7717199abf8bf8d43b1a021f250fe (diff) | |
download | volse-hubzilla-0718ac514d2421a96ab191f874a0cd8b120a5a78.tar.gz volse-hubzilla-0718ac514d2421a96ab191f874a0cd8b120a5a78.tar.bz2 volse-hubzilla-0718ac514d2421a96ab191f874a0cd8b120a5a78.zip |
remove deprecated mail code
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/include/text.php b/include/text.php index 35a65bcfb..2584a94b9 100644 --- a/include/text.php +++ b/include/text.php @@ -1523,15 +1523,6 @@ function unobscure(&$item) { return; } -function unobscure_mail(&$item) { - if(array_key_exists('mail_obscured',$item) && intval($item['mail_obscured'])) { - if($item['title']) - $item['title'] = base64url_decode(str_rot47($item['title'])); - if($item['body']) - $item['body'] = base64url_decode(str_rot47($item['body'])); - } -} - function theme_attachments(&$item) { @@ -2555,27 +2546,6 @@ function xchan_query(&$items, $abook = true, $effective_uid = 0) { } } -function xchan_mail_query(&$item) { - $arr = array(); - $chans = null; - if($item) { - if($item['from_xchan'] && (! in_array("'" . dbesc($item['from_xchan']) . "'",$arr))) - $arr[] = "'" . dbesc($item['from_xchan']) . "'"; - if($item['to_xchan'] && (! in_array("'" . dbesc($item['to_xchan']) . "'",$arr))) - $arr[] = "'" . dbesc($item['to_xchan']) . "'"; - } - - if(count($arr)) { - $chans = q("select xchan.*,hubloc.* from xchan left join hubloc on hubloc_hash = xchan_hash - where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_primary = 1"); - } - if($chans) { - $item['from'] = find_xchan_in_array($item['from_xchan'],$chans); - $item['to'] = find_xchan_in_array($item['to_xchan'],$chans); - } -} - - function find_xchan_in_array($xchan,$arr) { if(count($arr)) { foreach($arr as $x) { |