. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once INSTALLDIR . '/plugins/Facebook/facebookutil.php'; class FacebookQueueHandler extends QueueHandler { function transport() { return 'facebook'; } function handle($notice) { if ($this->_isLocal($notice)) { return facebookBroadcastNotice($notice); } return true; } /** * Determine whether the notice was locally created * * @param Notice $notice the notice * * @return boolean locality */ function _isLocal($notice) { return ($notice->is_local == Notice::LOCAL_PUBLIC || $notice->is_local == Notice::LOCAL_NONPUBLIC); } }