1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class SalmonQueueHandler extends QueueHandler
- {
- function transport()
- {
- return 'salmon';
- }
- function handle($data)
- {
- assert(is_array($data));
- assert(is_string($data['salmonuri']));
- assert(is_string($data['entry']));
- $actor = Profile::getKV($data['actor']);
- Salmon::post($data['salmonuri'], $data['entry'], $actor->getUser());
-
- return true;
- }
- }
|