diff options
author | friendica <info@friendica.com> | 2013-11-14 22:54:16 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-14 22:54:16 -0800 |
commit | 2fe6aef8bc41db07cfac094f9ede7b06a52e0ade (patch) | |
tree | edd827bcad66c10aed035f24f6aaa946d0379fd8 /include/ItemObject.php | |
parent | fa79085bd57877a38139a6c656150e68bc2e8255 (diff) | |
download | volse-hubzilla-2fe6aef8bc41db07cfac094f9ede7b06a52e0ade.tar.gz volse-hubzilla-2fe6aef8bc41db07cfac094f9ede7b06a52e0ade.tar.bz2 volse-hubzilla-2fe6aef8bc41db07cfac094f9ede7b06a52e0ade.zip |
fix default cipher for comments and set it at the conversation level rather than the item level.
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r-- | include/ItemObject.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index 6dbb38564..6088a2c1c 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -27,7 +27,7 @@ class Item extends BaseObject { private $threaded = false; private $visiting = false; private $channel = null; - private $cipher = 'aes256'; + public function __construct($data) { $a = $this->get_app(); @@ -35,11 +35,6 @@ class Item extends BaseObject { $this->data = $data; $this->toplevel = ($this->get_id() == $this->get_data_value('parent')); - $cipher = get_pconfig($x['profile_uid'],'system','default_cipher'); - if($cipher) - $this->cipher = $cipher; - - // Prepare the children if(count($data['children'])) { foreach($data['children'] as $item) { @@ -545,7 +540,7 @@ class Item extends BaseObject { '$indent' => $indent, '$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false), '$encrypt' => t('Encrypt text'), - '$cipher' => $this->cipher, + '$cipher' => $conv->get_cipher(), '$sourceapp' => get_app()->sourcename )); |