diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-20 20:19:15 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-04-26 14:16:07 +0200 |
commit | c904bd3a628e4bf3c2420ee314277da69828c3b2 (patch) | |
tree | 68a037024e870c207c9a6a89d94edcaadc8a8e39 /include/text.php | |
parent | d48bda88e61026930866f947523f1c0cbe1659d2 (diff) | |
download | volse-hubzilla-c904bd3a628e4bf3c2420ee314277da69828c3b2.tar.gz volse-hubzilla-c904bd3a628e4bf3c2420ee314277da69828c3b2.tar.bz2 volse-hubzilla-c904bd3a628e4bf3c2420ee314277da69828c3b2.zip |
The rest of the library and backend changes to support client-side e2ee and deprecate previous uses of item_obscured.
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/text.php b/include/text.php index 1fa03edab..24c2896ad 100644 --- a/include/text.php +++ b/include/text.php @@ -1379,20 +1379,7 @@ function link_compare($a, $b) { function unobscure(&$item) { - if(array_key_exists('item_obscured',$item) && intval($item['item_obscured'])) { - $key = get_config('system','prvkey'); - if($item['title']) - $item['title'] = crypto_unencapsulate(json_decode($item['title'],true),$key); - if($item['body']) - $item['body'] = crypto_unencapsulate(json_decode($item['body'],true),$key); - if(get_config('system','item_cache')) { - q("update item set title = '%s', body = '%s', item_obscured = 0 where id = %d", - dbesc($item['title']), - dbesc($item['body']), - intval($item['id']) - ); - } - } + return; } function unobscure_mail(&$item) { |