12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- defined('GNUSOCIAL') || die();
- class PingQueueHandler extends QueueHandler {
- function transport()
- {
- return 'ping';
- }
- function handle($notice) : bool
- {
- if (!($notice instanceof Notice)) {
- common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
- return true;
- }
- require_once INSTALLDIR . '/lib/util/ping.php';
- return ping_broadcast_notice($notice);
- }
- }
|