diff options
author | friendica <info@friendica.com> | 2013-07-30 19:05:34 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-30 19:05:34 -0700 |
commit | cb4d61e092e9e27c3753f60dd0a3757855279bbf (patch) | |
tree | fafc72fb07cc654e7b3d4cb3f6ec14a884bf79a1 | |
parent | 1a78c85fa0da26abfed3d296e6c64623252fdba5 (diff) | |
download | volse-hubzilla-cb4d61e092e9e27c3753f60dd0a3757855279bbf.tar.gz volse-hubzilla-cb4d61e092e9e27c3753f60dd0a3757855279bbf.tar.bz2 volse-hubzilla-cb4d61e092e9e27c3753f60dd0a3757855279bbf.zip |
unencrypt private posts for editing
-rw-r--r-- | mod/editpost.php | 9 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mod/editpost.php b/mod/editpost.php index af6f741c6..a97d2adff 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -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 = ''; diff --git a/version.inc b/version.inc index 16953cb9a..83e1d47a6 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-07-29.389 +2013-07-30.390 |