REMOVE: Identica support

This commit is contained in:
Mitsukarenai 2013-07-07 11:25:36 +02:00
parent 89f4b2dc6b
commit bb80e0a5b8
3 changed files with 2 additions and 18 deletions

View file

@ -727,7 +727,7 @@ if($site_type == 'generic' || $site_type == 'youtube') // custom CSS for generic
.article { background-color:white;padding: 12px 10px 12px 10px;border:1px solid #aaa;max-width:70em;margin:1em auto;box-shadow:0px 5px 7px #aaa; }
.footer { text-align:center; font-size: small; color:#333; clear: both; }';
}
else if($site_type == 'microblog' || $site_type == 'twitter' || $site_type == 'identica') // custom CSS for microblog
else if($site_type == 'microblog' || $site_type == 'twitter') // custom CSS for microblog
{
$css = $css.'.header h1 a { color: #333;font-size:40pt;text-shadow: #ccc 0px 5px 5px; }
.article .title h2 { width: 10em;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-size: 0.7em;margin: 0; color:#333; text-shadow: 1px 1px 1px #fff; }

View file

@ -141,8 +141,6 @@ function getArticlesPerPage( $type ) {
return 20;
case 'twitter':
return 20;
case 'identica':
return 20;
case 'shaarli':
return 20;
case 'youtube':
@ -158,8 +156,6 @@ function getInterval( $type ) {
return 300;
case 'twitter':
return 300;
case 'identica':
return 300;
case 'shaarli':
return 1800;
default:
@ -178,9 +174,6 @@ function updateType($siteurl) {
if( strpos($siteurl, 'twitter.com') !== FALSE ) {
return array('type' => 'twitter', 'name' => 'twitter');
}
elseif ( strpos( $siteurl, 'identi.ca') !== FALSE ) {
return array('type' => 'identica', 'name' => 'identica');
}
elseif( strpos( $siteurl, 'shaarli' ) !== FALSE ) {
return array('type' => 'shaarli', 'name' => 'shaarli');
}

View file

@ -116,7 +116,7 @@ function create_from_opml($opml) {
throw new Exception('Erreur : l\'autoblog '. $sitename .' existe déjà.');
$sitetype = escape($outline['text']);
if ( $sitetype != 'microblog' && $sitetype != 'shaarli' && $sitetype != 'twitter' && $sitetype != 'identica' && $sitetype != 'youtube')
if ( $sitetype != 'microblog' && $sitetype != 'shaarli' && $sitetype != 'twitter' && $sitetype != 'youtube')
$sitetype = 'generic';
$rssurl = DetectRedirect(escape($outline['xmlUrl']));
@ -210,9 +210,6 @@ $svg_type = '';
case "youtube":
$svg_type = $svg_youtube;
break;
case "identica":
$svg_type = $svg_youtube;
break;
case "shaarli":
$svg_type = $svg_shaarli;
break;
@ -570,11 +567,6 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO
else
$error[] = 'Vous devez définir une API Twitter -> RSS dans votre fichier de configuration (see <a href="https://github.com/mitsukarenai/twitterbridge">TwitterBridge</a>).';
}
elseif($socialinstance === 'identica') {
$sitetype = 'identica';
$siteurl = 'http://identi.ca/'.$socialaccount;
$rssurl = 'http://identi.ca/api/statuses/user_timeline/'.$socialaccount.'.rss';
}
elseif($socialinstance === 'statusnet' && !empty($_POST['statusneturl'])) {
$sitetype = 'microblog';
$siteurl= NoProtocolSiteURL(escape($_POST['statusneturl']));
@ -840,7 +832,6 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
echo '<input type="radio" name="socialinstance" value="twitter">Twitter (via <a href="'.substr(API_TWITTER, 0, -2).'status">twitterbridge</a>)<br>';
}
else echo '<s>Twitter</s><br>'; ?>
<input type="radio" name="socialinstance" value="identica">Identica<br>
<input type="radio" name="socialinstance" value="statusnet">
<input placeholder="statusnet.personnel.com" type="text" name="statusneturl" id="statusneturl"><br>
<input type="radio" name="socialinstance" value="youtube">Youtube<br>