From 6e76c86ad20c5c9ae3f8f2e2c226c8e22b9a8032 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 21 Oct 2011 03:33:34 -0700 Subject: queue api + queue limits --- include/profile_update.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'include/profile_update.php') 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 +} -- cgit v1.2.3