Merge branch 'master' into 0.9.x

This commit is contained in:
Brion Vibber 2010-11-19 15:53:29 -08:00
commit 37994e3ff1

View File

@ -438,10 +438,14 @@ class TwitterBridgePlugin extends Plugin
return true; return true;
} }
try {
$token = TwitterOAuthClient::unpackToken($flink->credentials); $token = TwitterOAuthClient::unpackToken($flink->credentials);
$client = new TwitterOAuthClient($token->key, $token->secret); $client = new TwitterOAuthClient($token->key, $token->secret);
$client->statusesDestroy($n2s->status_id); $client->statusesDestroy($n2s->status_id);
} catch (Exception $e) {
common_log(LOG_ERR, "Error attempting to delete bridged notice from Twitter: " . $e->getMessage());
}
$n2s->delete(); $n2s->delete();
} }
@ -475,10 +479,14 @@ class TwitterBridgePlugin extends Plugin
return true; return true;
} }
try {
$token = TwitterOAuthClient::unpackToken($flink->credentials); $token = TwitterOAuthClient::unpackToken($flink->credentials);
$client = new TwitterOAuthClient($token->key, $token->secret); $client = new TwitterOAuthClient($token->key, $token->secret);
$client->favoritesCreate($status_id); $client->favoritesCreate($status_id);
} catch (Exception $e) {
common_log(LOG_ERR, "Error attempting to favorite bridged notice on Twitter: " . $e->getMessage());
}
return true; return true;
} }
@ -511,10 +519,14 @@ class TwitterBridgePlugin extends Plugin
return true; return true;
} }
try {
$token = TwitterOAuthClient::unpackToken($flink->credentials); $token = TwitterOAuthClient::unpackToken($flink->credentials);
$client = new TwitterOAuthClient($token->key, $token->secret); $client = new TwitterOAuthClient($token->key, $token->secret);
$client->favoritesDestroy($status_id); $client->favoritesDestroy($status_id);
} catch (Exception $e) {
common_log(LOG_ERR, "Error attempting to unfavorite bridged notice on Twitter: " . $e->getMessage());
}
return true; return true;
} }