e2ee in comments and a bit of cleanup so not every theme has to define how to insert bbcode, only if they're doing something special (e.g. this is how to implement a javascript plugin :-)), and I got rid of the predefined http:// in the bbcode for urls. You're almost always pasting a url which already has that bit and it just creates an extra step.
This commit is contained in:
@@ -27,6 +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();
|
||||
@@ -34,6 +35,10 @@ 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'])) {
|
||||
@@ -538,7 +543,11 @@ class Item extends BaseObject {
|
||||
'$edvideo' => t('Video'),
|
||||
'$preview' => ((feature_enabled($conv->get_profile_owner(),'preview')) ? t('Preview') : ''),
|
||||
'$indent' => $indent,
|
||||
'$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false),
|
||||
'$encrypt' => t('Encrypt text'),
|
||||
'$cipher' => $this->cipher,
|
||||
'$sourceapp' => get_app()->sourcename
|
||||
|
||||
));
|
||||
|
||||
return $comment_box;
|
||||
|
||||
Reference in New Issue
Block a user