modified: 0.3/config.php
modified: 0.3/index.php Add Twitter API URL setup in config.php
This commit is contained in:
parent
b23cc3a6cd
commit
549da213fa
2 changed files with 4 additions and 1 deletions
|
@ -64,6 +64,9 @@ define( 'ALLOW_NEW_AUTOBLOGS_BY_OPML_LINK', TRUE );
|
|||
define( 'ALLOW_NEW_AUTOBLOGS_BY_XSAF', TRUE );
|
||||
|
||||
|
||||
// URL to Twitter's feed API
|
||||
$apitwitter='http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=';
|
||||
|
||||
// Logo à utiliser
|
||||
$logo="./icon-logo.svg";
|
||||
|
||||
|
|
|
@ -398,7 +398,7 @@ if(!empty($_POST['socialaccount']) && !empty($_POST['socialinstance']) && ALLOW_
|
|||
if($socialinstance === 'twitter') {
|
||||
$sitetype = 'microblog';
|
||||
$siteurl = "http://twitter.com/$socialaccount";
|
||||
$rssurl = "http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=$socialaccount";
|
||||
$rssurl = $apitwitter.$socialaccount;
|
||||
}
|
||||
elseif($socialinstance === 'identica') {
|
||||
$sitetype = 'microblog';
|
||||
|
|
Loading…
Reference in a new issue