forked from GNUsocial/gnu-social
Better cache key, httpclient reference in FacebookBridgePlugin
This commit is contained in:
parent
1c9dc7257d
commit
18ebca5b8f
@ -590,7 +590,7 @@ ENDOFSCRIPT;
|
||||
|
||||
function getFacebookUser($id) {
|
||||
|
||||
$key = Cache::key(sprintf("FacebookBridgePlugin:userdata:%d", $id));
|
||||
$key = Cache::key(sprintf("FacebookBridgePlugin:userdata:%s", $id));
|
||||
|
||||
$c = Cache::instance();
|
||||
|
||||
@ -602,7 +602,7 @@ ENDOFSCRIPT;
|
||||
}
|
||||
|
||||
$url = sprintf("https://graph.facebook.com/%s", $id);
|
||||
$client = new HTTP_Client();
|
||||
$client = new HTTPClient();
|
||||
$resp = $client->get($url);
|
||||
|
||||
if (!$resp->isOK()) {
|
||||
|
Loading…
Reference in New Issue
Block a user