aboutsummaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-03 06:41:52 -0700
committerFriendika <info@friendika.com>2011-06-03 06:41:52 -0700
commitbc3255ab3fc0857984e2b55bbb32a49cae73f7ea (patch)
tree0ccbaf880acd98867fee87e253d45bc5b167bf6e /addon
parent86df81352f6d9afdb5f30e59fa138a69ac20e222 (diff)
downloadvolse-hubzilla-bc3255ab3fc0857984e2b55bbb32a49cae73f7ea.tar.gz
volse-hubzilla-bc3255ab3fc0857984e2b55bbb32a49cae73f7ea.tar.bz2
volse-hubzilla-bc3255ab3fc0857984e2b55bbb32a49cae73f7ea.zip
don't serialize entire item
Diffstat (limited to 'addon')
-rw-r--r--addon/facebook/facebook.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 7ee2b1b08..ac522aab6 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -638,7 +638,7 @@ function facebook_post_hook(&$a,&$b) {
}
else {
if(! $likes) {
- $s = serialize(array('url' => $url, 'item' => $b, 'post' => $postvars));
+ $s = serialize(array('url' => $url, 'item' => $b['id'], 'post' => $postvars));
q("INSERT INTO `queue` ( `network`, `cid`, `created`, `last`, `content`)
VALUES ( '%s', '%s', '%s', '%s') ",
dbesc(NETWORK_FACEBOOK),
@@ -696,7 +696,7 @@ function fb_queue_hook(&$a,&$b) {
if($retj->id) {
q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
dbesc('fb::' . $retj->id),
- intval($item['id'])
+ intval($item)
);
logger('facebook queue: success: ' . $j);
remove_queue_item($x['id']);