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 {
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);
}
}