mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
don't serialize entire item
This commit is contained in:
parent
86df81352f
commit
bc3255ab3f
1 changed files with 2 additions and 2 deletions
|
@ -638,7 +638,7 @@ function facebook_post_hook(&$a,&$b) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(! $likes) {
|
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`)
|
q("INSERT INTO `queue` ( `network`, `cid`, `created`, `last`, `content`)
|
||||||
VALUES ( '%s', '%s', '%s', '%s') ",
|
VALUES ( '%s', '%s', '%s', '%s') ",
|
||||||
dbesc(NETWORK_FACEBOOK),
|
dbesc(NETWORK_FACEBOOK),
|
||||||
|
@ -696,7 +696,7 @@ function fb_queue_hook(&$a,&$b) {
|
||||||
if($retj->id) {
|
if($retj->id) {
|
||||||
q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
|
q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
|
||||||
dbesc('fb::' . $retj->id),
|
dbesc('fb::' . $retj->id),
|
||||||
intval($item['id'])
|
intval($item)
|
||||||
);
|
);
|
||||||
logger('facebook queue: success: ' . $j);
|
logger('facebook queue: success: ' . $j);
|
||||||
remove_queue_item($x['id']);
|
remove_queue_item($x['id']);
|
||||||
|
|
Loading…
Reference in a new issue