X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FEnjit%2Fenjitqueuehandler.php;h=284f29477c9782bce22117653f2341ad37ec15c5;hb=7dcb27672fa3f234f1fdfab5024752614e805341;hp=f0e706b929fd2182a7735eae21ea82ad0067702b;hpb=78eb9c78a781ba8d6929a260e5f9c07714d59ee3;p=quix0rs-gnu-social.git diff --git a/plugins/Enjit/enjitqueuehandler.php b/plugins/Enjit/enjitqueuehandler.php index f0e706b929..284f29477c 100644 --- a/plugins/Enjit/enjitqueuehandler.php +++ b/plugins/Enjit/enjitqueuehandler.php @@ -23,7 +23,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { /** * 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 { @@ -32,14 +32,7 @@ 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); @@ -52,7 +45,7 @@ class EnjitQueueHandler extends QueueHandler } # - # 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; @@ -80,12 +73,11 @@ class EnjitQueueHandler extends QueueHandler ); # - # 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(); } - }