queue api

This commit is contained in:
Friendika 2011-10-21 03:34:07 -07:00
parent bab459d28f
commit 5d21b7256b
2 changed files with 2 additions and 9 deletions

Binary file not shown.

View file

@ -718,15 +718,8 @@ function facebook_post_hook(&$a,&$b) {
else { else {
if(! $likes) { if(! $likes) {
$s = serialize(array('url' => $url, 'item' => $b['id'], 'post' => $postvars)); $s = serialize(array('url' => $url, 'item' => $b['id'], 'post' => $postvars));
q("INSERT INTO `queue` ( `network`, `cid`, `created`, `last`, `content`) require_once('include/queue_fn.php');
VALUES ( '%s', %d, '%s', '%s', '%s') ", add_to_queue($a->contact,NETWORK_FACEBOOK,$s);
dbesc(NETWORK_FACEBOOK),
intval($a->contact),
dbesc(datetime_convert()),
dbesc(datetime_convert()),
dbesc($s)
);
notice( t('Facebook post failed. Queued for retry.') . EOL); notice( t('Facebook post failed. Queued for retry.') . EOL);
} }
} }