. * * @category Plugin * @package StatusNet * @author Zach Copley * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ if (!defined('STATUSNET')) { exit(1); } class FacebookQueueHandler extends QueueHandler { function transport() { return 'facebook'; } function handle($notice) { if ($this->_isLocal($notice)) { return Facebookclient::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); } }