The rest of the library and backend changes to support client-side e2ee and deprecate previous uses of item_obscured.

This commit is contained in:
zotlabs
2017-04-20 20:19:15 -07:00
parent 2d90b831f0
commit 94f15e3551
6 changed files with 20 additions and 59 deletions

View File

@@ -36,7 +36,7 @@ class Viewsrc extends \Zotlabs\Web\Controller {
if($r) {
if(intval($r[0]['item_obscured']))
$r[0]['body'] = crypto_unencapsulate(json_decode($r[0]['body'],true),get_config('system','prvkey'));
$dload = true;
if($dload) {
header('Content-type: ' . $r[0]['mimetype']);