forked from GNUsocial/gnu-social
Merge remote-tracking branch 'origin'
This commit is contained in:
@@ -253,7 +253,9 @@ class RealtimePlugin extends Plugin
|
||||
list($action, $arg1, $arg2) = $path;
|
||||
|
||||
$channels = Realtime_channel::getAllChannels($action, $arg1, $arg2);
|
||||
$this->log(LOG_INFO, sprintf(_("%d candidate channels for notice %d"), $notice->id));
|
||||
$this->log(LOG_INFO, sprintf(_("%d candidate channels for notice %d"),
|
||||
count($channels),
|
||||
$notice->id));
|
||||
|
||||
foreach ($channels as $channel) {
|
||||
|
||||
|
@@ -23,7 +23,7 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
|
||||
$shortoptions = 'fi::a';
|
||||
$longoptions = array('id::', 'foreground', 'all');
|
||||
|
||||
$helptext = <<<END_OF_XMPP_HELP
|
||||
$helptext = <<<END_OF_TWITTERDAEMON_HELP
|
||||
Daemon script for receiving new notices from Twitter users.
|
||||
|
||||
-i --id Identity (default none)
|
||||
@@ -31,12 +31,10 @@ Daemon script for receiving new notices from Twitter users.
|
||||
(requires Stomp queue handler, status_network setup)
|
||||
-f --foreground Stay in the foreground (default background)
|
||||
|
||||
END_OF_XMPP_HELP;
|
||||
END_OF_TWITTERDAEMON_HELP;
|
||||
|
||||
require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||
|
||||
require_once INSTALLDIR . '/lib/jabber.php';
|
||||
|
||||
class TwitterDaemon extends SpawningDaemon
|
||||
{
|
||||
protected $allsites = false;
|
||||
|
@@ -208,7 +208,7 @@ class TwitterSiteStream extends TwitterStreamReader
|
||||
{
|
||||
protected $userIds;
|
||||
|
||||
public function __construct(TwitterOAuthClient $auth, $baseUrl='http://betastream.twitter.com')
|
||||
public function __construct(TwitterOAuthClient $auth, $baseUrl='https://sitestream.twitter.com')
|
||||
{
|
||||
parent::__construct($auth, $baseUrl);
|
||||
}
|
||||
|
Reference in New Issue
Block a user