1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- defined('GNUSOCIAL') || die();
- class PluginQueueHandler extends QueueHandler
- {
- function transport()
- {
- return 'plugin';
- }
- function handle($notice): bool
- {
- if (!($notice instanceof Notice)) {
- common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
- return true;
- }
- try {
- Event::handle('HandleQueuedNotice', array(&$notice));
- } catch (NoProfileException $unp) {
-
- return true;
- }
- return true;
- }
- }
|