Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing
This commit is contained in:
commit
c4557d4d07
@ -75,6 +75,10 @@ class ApiTimelinePublicAction extends ApiPrivateAuthAction
|
|||||||
|
|
||||||
$this->notices = $this->getNotices();
|
$this->notices = $this->getNotices();
|
||||||
|
|
||||||
|
if ($this->since) {
|
||||||
|
throw new ServerException("since parameter is disabled for performance; use since_id", 403);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,7 +149,7 @@ class ApiTimelinePublicAction extends ApiPrivateAuthAction
|
|||||||
|
|
||||||
$notice = Notice::publicStream(
|
$notice = Notice::publicStream(
|
||||||
($this->page - 1) * $this->count, $this->count, $this->since_id,
|
($this->page - 1) * $this->count, $this->count, $this->since_id,
|
||||||
$this->max_id, $this->since
|
$this->max_id
|
||||||
);
|
);
|
||||||
|
|
||||||
while ($notice->fetch()) {
|
while ($notice->fetch()) {
|
||||||
|
@ -107,7 +107,8 @@ class StompQueueManager extends QueueManager
|
|||||||
$message .= ':' . $param;
|
$message .= ':' . $param;
|
||||||
}
|
}
|
||||||
$this->_connect();
|
$this->_connect();
|
||||||
$result = $this->_send($this->control,
|
$con = $this->cons[$this->defaultIdx];
|
||||||
|
$result = $con->send($this->control,
|
||||||
$message,
|
$message,
|
||||||
array ('created' => common_sql_now()));
|
array ('created' => common_sql_now()));
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -368,17 +369,10 @@ class StompQueueManager extends QueueManager
|
|||||||
foreach ($this->cons as $i => $con) {
|
foreach ($this->cons as $i => $con) {
|
||||||
if ($con) {
|
if ($con) {
|
||||||
$this->rollback($i);
|
$this->rollback($i);
|
||||||
$con->unsubscribe($this->control);
|
$con->disconnect();
|
||||||
|
$this->cons[$i] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($this->sites) {
|
|
||||||
foreach ($this->sites as $server) {
|
|
||||||
StatusNet::init($server);
|
|
||||||
$this->doUnsubscribe();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$this->doUnsubscribe();
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user