From: Friendika Date: Fri, 21 Oct 2011 10:34:07 +0000 (-0700) Subject: queue api X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d21b7256bf3f4d6dd167cb99d0bdc7a7ecafcd4;p=friendica-addons.git queue api --- diff --git a/facebook.tgz b/facebook.tgz index 4b1643d8..cdf52675 100644 Binary files a/facebook.tgz and b/facebook.tgz differ diff --git a/facebook/facebook.php b/facebook/facebook.php index f1c7f85a..a5478895 100644 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -718,15 +718,8 @@ function facebook_post_hook(&$a,&$b) { else { if(! $likes) { $s = serialize(array('url' => $url, 'item' => $b['id'], 'post' => $postvars)); - q("INSERT INTO `queue` ( `network`, `cid`, `created`, `last`, `content`) - VALUES ( '%s', %d, '%s', '%s', '%s') ", - dbesc(NETWORK_FACEBOOK), - intval($a->contact), - dbesc(datetime_convert()), - dbesc(datetime_convert()), - dbesc($s) - ); - + require_once('include/queue_fn.php'); + add_to_queue($a->contact,NETWORK_FACEBOOK,$s); notice( t('Facebook post failed. Queued for retry.') . EOL); } }