. */ defined('GNUSOCIAL') || die(); class RSSCloudQueueHandler extends QueueHandler { function transport() { return 'rsscloud'; } function handle($notice) : bool { if (!($notice instanceof Notice)) { common_log(LOG_ERR, "Got a bogus notice, not using"); return true; } try { $profile = $notice->getProfile(); } catch (Exception $e) { common_log(LOG_ERR, "Dropping RSSCloud item for notice with bogus profile: " . $e->getMessage()); return true; } $notifier = new RSSCloudNotifier(); return $notifier->notify($profile); } }