#$config['memcached']['server'] = 'localhost';
#$config['memcached']['port'] = 11211;
+# Enable bidirectional Twitter bridge
+#$config['twitterbridge']['enabled'] = true;
+
#Twitter integration source attribute. Note: default is Laconica
#$config['integration']['source'] = 'Laconica';
array('piddir' => '/var/run',
'user' => false,
'group' => false),
+ 'twitterbridge' =>
+ array('enabled' => false),
'integration' =>
array('source' => 'Laconica', # source attribute for Twitter
'taguri' => $_server.',2009'), # base for tag URIs
if(common_config('memcached','enabled')) {
echo "memcachedqueuehandler.php ";
}
+if(common_config('twitterbridge','enabled')) {
+ echo "twitterstatusfetcher.php ";
+}
echo "ombqueuehandler.php ";
echo "twitterqueuehandler.php ";
echo "facebookqueuehandler.php ";
for f in jabberhandler ombhandler publichandler smshandler pinghandler \
xmppconfirmhandler xmppdaemon twitterhandler facebookhandler \
- memcachehandler inboxhandler; do
+ memcachehandler inboxhandler twitterstatusfetcher; do
FILES="$DIR/$f.*.pid"
for ff in "$FILES" ; do
define('MAXCHILDREN', 2);
define('POLL_INTERVAL', 60); // in seconds
-// Uncomment this to get useful console output
+// Uncomment this to get useful logging
define('SCRIPT_DEBUG', true);
require_once(INSTALLDIR . '/lib/common.php');
function name()
{
- return 'twitterstatusfetcher';
+ return ('twitterstatusfetcher.generic');
}
function run()
' secs before hitting Twitter again.');
}
- sleep(POLL_INTERVAL);
+ if (POLL_INTERVAL > 0) {
+ sleep(POLL_INTERVAL);
+ }
} while (true);
}
// XXX: Figure out a better way to link Twitter replies?
$notice->saveReplies();
- // XXX: Do we want to polute our tag cloud with
+ // XXX: Do we want to pollute our tag cloud with
// hashtags from Twitter?
$notice->saveTags();
$notice->saveGroups();