aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-23 02:45:21 -0700
committerfriendica <info@friendica.com>2014-08-23 02:45:21 -0700
commit5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed (patch)
tree74c8a8635ca9aeaf86e48d33b6b86fdf39b3627f /mod/item.php
parent9196c9eef091e7f4a41fbc9452521d6ca2de55a3 (diff)
downloadvolse-hubzilla-5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed.tar.gz
volse-hubzilla-5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed.tar.bz2
volse-hubzilla-5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed.zip
switch everything over to crypto_encapsulate()
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 27691eb4f..df51c8a92 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -768,9 +768,9 @@ function item_post(&$a) {
$key = get_config('system','pubkey');
$datarray['item_flags'] = $datarray['item_flags'] | ITEM_OBSCURED;
if($datarray['title'])
- $datarray['title'] = json_encode(aes_encapsulate($datarray['title'],$key));
+ $datarray['title'] = json_encode(crypto_encapsulate($datarray['title'],$key));
if($datarray['body'])
- $datarray['body'] = json_encode(aes_encapsulate($datarray['body'],$key));
+ $datarray['body'] = json_encode(crypto_encapsulate($datarray['body'],$key));
}
if($orig_post) {