aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editpost.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/editpost.php')
-rw-r--r--mod/editpost.php9
1 files changed, 9 insertions, 0 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 = '';