diff options
author | Friendika <info@friendika.com> | 2011-10-21 03:33:34 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-21 03:33:34 -0700 |
commit | 6e76c86ad20c5c9ae3f8f2e2c226c8e22b9a8032 (patch) | |
tree | bef69999ba8f63cabbeceeec052807350b24d5f7 /include/profile_update.php | |
parent | d1833cabf67b35a10a676d69a1e45fe7aadc31bc (diff) | |
download | volse-hubzilla-6e76c86ad20c5c9ae3f8f2e2c226c8e22b9a8032.tar.gz volse-hubzilla-6e76c86ad20c5c9ae3f8f2e2c226c8e22b9a8032.tar.bz2 volse-hubzilla-6e76c86ad20c5c9ae3f8f2e2c226c8e22b9a8032.zip |
queue api + queue limits
Diffstat (limited to 'include/profile_update.php')
-rw-r--r-- | include/profile_update.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/profile_update.php b/include/profile_update.php index 1a2d9d3b5..3828e90ed 100644 --- a/include/profile_update.php +++ b/include/profile_update.php @@ -2,6 +2,7 @@ require_once('include/datetime.php'); require_once('include/diaspora.php'); +require_once('include/queue_fn.php'); function profile_change() { @@ -81,7 +82,6 @@ function profile_change() { $tpl = get_markup_template('diaspora_profile.tpl'); - $msg = replace_macros($tpl,array( '$handle' => $handle, '$first' => $first, @@ -100,14 +100,6 @@ function profile_change() { $msgtosend = diaspora_msg_build($msg,$a->user,null,$a->user['prvkey'],null,true); foreach($recips as $recip) { - q("insert into queue (`cid`,`network`,`created`,`last`,`content`,`batch`) - values(%d,'%s','%s','%s','%s',%d)", - intval($recip['id']), - dbesc(NETWORK_DIASPORA), - dbesc(datetime_convert()), - dbesc(datetime_convert()), - dbesc($msgtosend), - intval(1) - ); + add_to_queue($recip['id'],NETWORK_DIASPORA,$msgtosend,true); } -}
\ No newline at end of file +} |