12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- defined('GNUSOCIAL') || die();
- 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/util/mail.php';
- return mail_broadcast_notice_sms($notice);
- }
- }
|