/**
* Queue handler for watching new notices and posting to enjit.
- * @fixme is this actually being used/functional atm?
+ * @todo FIXME: Is this actually being used/functional atm?
*/
class EnjitQueueHandler extends QueueHandler
{
return 'enjit';
}
- function start()
- {
- $this->log(LOG_INFO, "Starting EnjitQueueHandler");
- $this->log(LOG_INFO, "Broadcasting to ".common_config('enjit', 'apiurl'));
- return true;
- }
-
- function handle_notice($notice)
+ function handle($notice)
{
$profile = Profile::staticGet($notice->profile_id);
}
#
- # Build an Atom message from the notice
+ // Build an Atom message from the notice
#
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
$msg = $profile->nickname . ': ' . $notice->content;
);
#
- # POST the message to $config['enjit']['apiurl']
+ // POST the message to $config['enjit']['apiurl']
#
$request = HTTPClient::start();
$response = $request->post($url, null, $data);
return $response->isOk();
}
-
}