From 549da213faaf2f9ca377f841fd42bbb236c14859 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Mon, 4 Mar 2013 11:19:21 +0100 Subject: [PATCH] modified: 0.3/config.php modified: 0.3/index.php Add Twitter API URL setup in config.php --- 0.3/config.php | 3 +++ 0.3/index.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/0.3/config.php b/0.3/config.php index fb0d445..cc64d2f 100755 --- a/0.3/config.php +++ b/0.3/config.php @@ -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"; diff --git a/0.3/index.php b/0.3/index.php index 06335b8..5b36abe 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -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';