Local user profile getUrl gives dynamically generated URL

This commit is contained in:
Mikael Nordfeldth 2016-01-09 13:47:38 +01:00
parent f143925931
commit d1e609a886
1 changed files with 2 additions and 0 deletions

View File

@ -1431,6 +1431,8 @@ class Profile extends Managed_DataObject
: $this->profileurl;
}
Event::handle('EndUserGroupHomeUrl', array($this->getGroup(), $url));
} elseif ($this->isLocal()) {
$url = common_local_url('showstream', array('nickname' => $this->getNickname()));
} else {
$url = $this->profileurl;
}