]> git.mxchange.org Git - friendica-addons.git/commitdiff
queue api
authorFriendika <info@friendika.com>
Fri, 21 Oct 2011 10:34:07 +0000 (03:34 -0700)
committerFriendika <info@friendika.com>
Fri, 21 Oct 2011 10:34:07 +0000 (03:34 -0700)
facebook.tgz
facebook/facebook.php

index 4b1643d87e883097947fcefff8dd54372598833e..cdf526756236aa76df692af9b07954356982b588 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index f1c7f85a8447b728d0ce1621b39e78e97ef60b33..a54788952e31a8e136375acd0be912cbdc2d43fc 100644 (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);
                                                }
                                        }