diff options
author | Mario <mario@mariovavti.com> | 2021-10-12 11:25:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-12 11:25:24 +0000 |
commit | e455fae334c4b5f8d5a563e099add1482749c92f (patch) | |
tree | 87a3e2224a4d03b30c97f716a2627f28547c5149 /Zotlabs/Module/Notes.php | |
parent | 29f3dc2fa351746f50b87cf7b147ab5055b79fa2 (diff) | |
download | volse-hubzilla-e455fae334c4b5f8d5a563e099add1482749c92f.tar.gz volse-hubzilla-e455fae334c4b5f8d5a563e099add1482749c92f.tar.bz2 volse-hubzilla-e455fae334c4b5f8d5a563e099add1482749c92f.zip |
httpsig: add parentheses
Diffstat (limited to 'Zotlabs/Module/Notes.php')
-rw-r--r-- | Zotlabs/Module/Notes.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Zotlabs/Module/Notes.php b/Zotlabs/Module/Notes.php index 6e8e03f20..57b8f30db 100644 --- a/Zotlabs/Module/Notes.php +++ b/Zotlabs/Module/Notes.php @@ -19,7 +19,12 @@ class Notes extends Controller { if(! Apps::system_app_installed(local_channel(), 'Notes')) return EMPTY_STR; - $ret = array('success' => true); + $ret = [ + 'success' => false, + 'html' => '' + ]; + + if(array_key_exists('note_text',$_REQUEST)) { $body = escape_tags($_REQUEST['note_text']); @@ -33,6 +38,10 @@ class Notes extends Controller { set_pconfig(local_channel(),'notes','text.bak',$old_text); } set_pconfig(local_channel(),'notes','text',$body); + + $ret['html'] = bbcode($body); + $ret['success'] = true; + } // push updates to channel clones |