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
|
@ -64,6 +64,9 @@ define( 'ALLOW_NEW_AUTOBLOGS_BY_OPML_LINK', TRUE );
|
||||||
define( 'ALLOW_NEW_AUTOBLOGS_BY_XSAF', 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 à utiliser
|
||||||
$logo="./icon-logo.svg";
|
$logo="./icon-logo.svg";
|
||||||
|
|
||||||
|
|
|
@ -398,7 +398,7 @@ if(!empty($_POST['socialaccount']) && !empty($_POST['socialinstance']) && ALLOW_
|
||||||
if($socialinstance === 'twitter') {
|
if($socialinstance === 'twitter') {
|
||||||
$sitetype = 'microblog';
|
$sitetype = 'microblog';
|
||||||
$siteurl = "http://twitter.com/$socialaccount";
|
$siteurl = "http://twitter.com/$socialaccount";
|
||||||
$rssurl = "http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=$socialaccount";
|
$rssurl = $apitwitter.$socialaccount;
|
||||||
}
|
}
|
||||||
elseif($socialinstance === 'identica') {
|
elseif($socialinstance === 'identica') {
|
||||||
$sitetype = 'microblog';
|
$sitetype = 'microblog';
|
||||||
|
|
Loading…
Reference in a new issue