#optionally show non-local messages in public timeline
#$config['public']['localonly'] = false;
+
+#Twitter integration source attribute. Note: default is Laconica
+#$config['integration']['source'] = 'Laconica';
'daemon' =>
array('piddir' => '/var/run',
'user' => false,
- 'group' => false),
- 'memcached' =>
- array('enabled' => false,
- 'server' => 'localhost',
- 'port' => 11211)
+ 'group' => false)
);
$config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
}
function common_twitter_broadcast($notice, $flink) {
+ global $config;
$success = true;
$fuser = $flink->getForeignUser();
$twitter_user = $fuser->nickname;
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => array(
'status' => $statustxt,
- 'source' => 'Laconica'
+ 'source' => $config['integration']['source']
),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FAILONERROR => true,
CURLOPT_HEADER => false,
CURLOPT_FOLLOWLOCATION => true,
- // CURLOPT_USERAGENT => "identi.ca",
+ CURLOPT_USERAGENT => "Laconica",
CURLOPT_CONNECTTIMEOUT => 120, // XXX: Scary!!!! How long should this be?
CURLOPT_TIMEOUT => 120
);