. * * @category Group * @package StatusNet * @author Evan Prodromou * @author Sarven Capadisli * @copyright 2008-2009 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('GNUSOCIAL')) { exit(1); } /** * Permalink for a group * * The group nickname can change, but not the group ID. So we use * an URL with the ID in it as the permanent identifier. * * @category Group * @package StatusNet * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ class GroupbyidAction extends ShowgroupAction { /** group we're viewing. */ protected $group = null; function isReadOnly($args) { return true; } protected function doPreparation() { $this->group = User_group::getByID($this->arg('id')); $this->target = $this->group->getProfile(); if ($this->target->isLocal()) { common_redirect($this->target->getUrl()); } } }