summaryrefslogtreecommitdiff
path: root/plugins/ModPlus
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-15 15:40:07 -0800
committerBrion Vibber <brion@pobox.com>2010-11-15 15:40:07 -0800
commit16f1c764c0ac89f922654f9f663faaada611b8e2 (patch)
treebdc0c3a74f218085afd4a0544b26199ebe4a10ed /plugins/ModPlus
parent6849b8f9e530deae776064d4489777a9fb4eb772 (diff)
RemoteProfileAction: redirect to the regular user profile page if given a local user.
Diffstat (limited to 'plugins/ModPlus')
-rw-r--r--plugins/ModPlus/remoteprofileaction.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/ModPlus/remoteprofileaction.php b/plugins/ModPlus/remoteprofileaction.php
index ca8204511..9c089ee23 100644
--- a/plugins/ModPlus/remoteprofileaction.php
+++ b/plugins/ModPlus/remoteprofileaction.php
@@ -19,6 +19,14 @@ class RemoteProfileAction extends ShowstreamAction
return false;
}
+ $user = User::staticGet('id', $this->profile->id);
+ if ($user) {
+ // This is a local user -- send to their regular profile.
+ $url = common_local_url('showstream', array('nickname' => $user->nickname));
+ common_redirect($url);
+ return false;
+ }
+
$this->tag = $this->trimmed('tag');
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
common_set_returnto($this->selfUrl());