* @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 ManagedAction
+class GroupbyidAction extends ShowgroupAction
{
/** group we're viewing. */
protected $group = null;
protected function doPreparation()
{
$this->group = User_group::getByID($this->arg('id'));
- }
+ $this->target = $this->group->getProfile();
- public function showPage()
- {
- common_redirect($this->group->homeUrl(), 303);
+ if ($this->target->isLocal()) {
+ common_redirect($this->target->getUrl());
+ }
}
}