. */ defined('GNUSOCIAL') || die(); /** * Queue handler for pushing new notices to ping servers. */ 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/ping.php'; return ping_broadcast_notice($notice); } }