This commit is contained in:
Tobias Diekershoff 2014-07-07 11:59:33 +02:00
parent f4c9908e0c
commit 79a8390d20

View file

@ -306,7 +306,7 @@ function statusnet_settings(&$a,&$s) {
*/ */
if (! $globalsn == null) { if (! $globalsn == null) {
$s .= '<h4>' . t('Globally Available StatusNet OAuthKeys') . '</h4>'; $s .= '<h4>' . t('Globally Available StatusNet OAuthKeys') . '</h4>';
$s .= '<p>'. t("There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance \x28see below\x29.") .'</p>'; $s .= '<p>'. t("There are preconfigured OAuth key pairs for some StatusNet servers available. If you are using one of them, please use these credentials. If not feel free to connect to any other StatusNet instance \x28see below\x29.") .'</p>';
$s .= '<div id="statusnet-preconf-wrapper">'; $s .= '<div id="statusnet-preconf-wrapper">';
foreach ($globalsn as $asn) { foreach ($globalsn as $asn) {
$s .= '<input type="radio" name="statusnet-preconf-apiurl" value="'. $asn['apiurl'] .'">'. $asn['sitename'] .'<br />'; $s .= '<input type="radio" name="statusnet-preconf-apiurl" value="'. $asn['apiurl'] .'">'. $asn['sitename'] .'<br />';
@ -1588,3 +1588,9 @@ function statusnet_is_retweet($a, $uid, $body) {
logger('statusnet_is_retweet: result '.print_r($result, true), LOGGER_DEBUG); logger('statusnet_is_retweet: result '.print_r($result, true), LOGGER_DEBUG);
return(isset($result->id)); return(isset($result->id));
} }
get_hostname();
$connection = new StatusNetOAuth($api, $ckey,$csecret,$otoken,$osecret);
$parameters = array( true);
//$parameters[image/