Skip to content

Commit

Permalink
REMOVE: Identica support
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsukarenai committed Jul 7, 2013
1 parent 89f4b2d commit bb80e0a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion autoblogs/autoblog.php
Expand Up @@ -727,7 +727,7 @@ protected function _copy($from, $to)
.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; }
Expand Down
7 changes: 0 additions & 7 deletions functions.php
Expand Up @@ -141,8 +141,6 @@ function getArticlesPerPage( $type ) {
return 20;
case 'twitter':
return 20;
case 'identica':
return 20;
case 'shaarli':
return 20;
case 'youtube':
Expand All @@ -158,8 +156,6 @@ function getInterval( $type ) {
return 300;
case 'twitter':
return 300;
case 'identica':
return 300;
case 'shaarli':
return 1800;
default:
Expand All @@ -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');
}
Expand Down
11 changes: 1 addition & 10 deletions index.php
Expand Up @@ -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']));
Expand Down Expand Up @@ -210,9 +210,6 @@ function svg_base($color)
case "youtube":
$svg_type = $svg_youtube;
break;
case "identica":
$svg_type = $svg_youtube;
break;
case "shaarli":
$svg_type = $svg_shaarli;
break;
Expand Down Expand Up @@ -570,11 +567,6 @@ function svg_status($fill, $text, $back)
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']));
Expand Down Expand Up @@ -840,7 +832,6 @@ function svg_status($fill, $text, $back)
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>
Expand Down

2 comments on commit bb80e0a

@mitsukarenai
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identica est en cours de migration: il utilisera Pump.io au lieu de StatusNet. Les développeurs ne sont vraiment pas chauds pour ajouter un support RSS/ATOM public sans OAuth:

pump-io/pump.io#55

Le support Identica du Projet Autoblog aurait donc été cassé à court terme, mieux vaut prendre le taureau par les cornes et retirer la fonctionnalité avant la finalisation 0.3 si on veut éviter de décevoir les utilisateurs. Je garde bien sûr un oeil à pump.io (et quelques autres projets comme GNU social, Diaspora, Movim,...) pour éventuel ajout ultérieur à Autoblog 0.3.x s'ils fournissent des flux publics.

important : le non-support Identica casse les SITE_TYPE identica, merci à ceux qui font déjà tourner une instance de modifier le SITE_TYPE en "microblog" dans les vvb.ini concernés.. jusqu'à ce qu'Identica ferme les flux 😃

@ArthurHoaro
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En une ligne (dans le dossier autoblogs/) :

sed -i 's/SITE_TYPE="identica"/SITE_TYPE="microblog"/g' ./identica*/vvb.ini

Please sign in to comment.