projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f143925
)
Local user profile getUrl gives dynamically generated URL
author
Mikael Nordfeldth
<mmn@hethane.se>
Sat, 9 Jan 2016 12:47:38 +0000
(13:47 +0100)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Sat, 9 Jan 2016 12:47:38 +0000
(13:47 +0100)
classes/Profile.php
patch
|
blob
|
history
diff --git
a/classes/Profile.php
b/classes/Profile.php
index 845e4d429d948e1bff6e51191f1dfa8e6fd375e9..e8470d96c5d209641434934ee5d5bdde15b4046f 100644
(file)
--- a/
classes/Profile.php
+++ b/
classes/Profile.php
@@
-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;
}