queue api
parent
bab459d28f
commit
5d21b7256b
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue