X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshowgroup.php;h=b0cc1dbc7df61ab4d720f49debc39c4a83fdc119;hb=b4c345392372ca39e0a5061b281df2074575e9d7;hp=4d8ba5fa8da498497710fa1fc0866b573b62d1ed;hpb=d647483a27faad7bf5297255a68b6b3b82426b88;p=quix0rs-gnu-social.git diff --git a/actions/showgroup.php b/actions/showgroup.php index 4d8ba5fa8d..b0cc1dbc7d 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -130,8 +130,18 @@ class ShowgroupAction extends GroupDesignAction $this->group = User_group::staticGet('nickname', $nickname); if (!$this->group) { - $this->clientError(_('No such group'), 404); - return false; + $alias = Group_alias::staticGet('alias', $nickname); + if ($alias) { + $args = array('id' => $alias->group_id); + if ($this->page != 1) { + $args['page'] = $this->page; + } + common_redirect(common_local_url('groupbyid', $args), 301); + return false; + } else { + $this->clientError(_('No such group'), 404); + return false; + } } common_set_returnto($this->selfUrl());