unencrypt private posts for editing

This commit is contained in:
friendica 2013-07-30 19:05:34 -07:00
parent 1a78c85fa0
commit cb4d61e092
2 changed files with 10 additions and 1 deletions

View File

@ -47,6 +47,15 @@ function editpost_content(&$a) {
));
if($itm[0]['item_flags'] & ITEM_OBSCURED) {
$key = get_config('system','prvkey');
if($itm[0]['title'])
$itm[0]['title'] = aes_unencapsulate(json_decode($itm[0]['title'],true),$key);
if($itm[0]['body'])
$itm[0]['body'] = aes_unencapsulate(json_decode($itm[0]['body'],true),$key);
}
$tpl = get_markup_template("jot.tpl");
$jotplugins = '';

View File

@ -1 +1 @@
2013-07-29.389
2013-07-30.390