diff options
author | friendica <info@friendica.com> | 2014-04-10 18:46:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-10 18:46:22 -0700 |
commit | a798dd767d1d3e7d250db2b9387b754a713c5cce (patch) | |
tree | a8784a09de2711d958661e3c1dbf6128a79ecabd /mod/notes.php | |
parent | 9bb7811d741339404ea6b372363c805d41a84794 (diff) | |
download | volse-hubzilla-a798dd767d1d3e7d250db2b9387b754a713c5cce.tar.gz volse-hubzilla-a798dd767d1d3e7d250db2b9387b754a713c5cce.tar.bz2 volse-hubzilla-a798dd767d1d3e7d250db2b9387b754a713c5cce.zip |
push notes widget updates to channel clones on focusout (final save). Don't do this for the auto-save events (every ten seconds) which could generate superfluous network traffic.
Diffstat (limited to 'mod/notes.php')
-rw-r--r-- | mod/notes.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/notes.php b/mod/notes.php index 468b4ef26..e21e4386c 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -10,6 +10,14 @@ function notes_init(&$a) { $body = escape_tags($_REQUEST['note_text']); set_pconfig(local_user(),'notes','text',$body); } + + // push updates to channel clones + + if((argc() > 1) && (argv(1) === 'sync')) { + require_once('include/zot.php'); + build_sync_packet(); + } + logger('notes saved.'); json_return_and_die($ret); |