. */ defined('GNUSOCIAL') || die(); /** * Queue handler for pushing new notices to local subscribers using SMS. */ class SmsQueueHandler extends QueueHandler { function transport() { return 'sms'; } function handle($notice) : bool { if (!($notice instanceof Notice)) { common_log(LOG_ERR, "Got a bogus notice, not broadcasting"); return true; } require_once(INSTALLDIR . '/lib/mail.php'); return mail_broadcast_notice_sms($notice); } }