Will re-enable anything queueing after 0.9.x merge

Revert "Any object (not just Notice's) can be queued"

This reverts commit 77ea02cac3.
This commit is contained in:
Craig Andrews
2010-01-22 17:19:32 -05:00
parent ef7db60fed
commit 78eb9c78a7
19 changed files with 291 additions and 109 deletions

View File

@@ -23,6 +23,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
/**
* Queue handler for pushing new notices to public XMPP subscribers.
* @fixme correct this exception handling
*/
class PublicQueueHandler extends QueueHandler
{
@@ -32,14 +33,15 @@ class PublicQueueHandler extends QueueHandler
return 'public';
}
function handle($notice)
function handle_notice($notice)
{
require_once(INSTALLDIR.'/lib/jabber.php');
try {
return jabber_public_notice($notice);
} catch (XMPPHP_Exception $e) {
$this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
return false;
die($e->getMessage());
}
return true;
}
}