summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-07 18:26:12 -0400
committerCraig Andrews <candrews@integralblue.com>2009-08-07 18:26:12 -0400
commita7a87913befddd7b1ab8e0b4ab0e563e7927950b (patch)
treef34b4e01ba65ced97017ab6cc7d0610c4d079cd6 /actions
parent11086c78239a30dc47622837a2800d899ebf9b0f (diff)
Redirect instead of showing an error when the user visits a non-local notice's url
Use consistent logic in display non-local notice links Fixes http://laconi.ca/trac/ticket/1788
Diffstat (limited to 'actions')
-rw-r--r--actions/shownotice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php
index 8f73dc824..4b179bc72 100644
--- a/actions/shownotice.php
+++ b/actions/shownotice.php
@@ -97,8 +97,8 @@ class ShownoticeAction extends OwnerDesignAction
$this->user = User::staticGet('id', $this->profile->id);
- if (empty($this->user)) {
- $this->serverError(_('Not a local notice'), 500);
+ if (! $this->notice->is_local) {
+ common_redirect($this->notice->uri);
return false;
}