X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshownotice.php;h=d09100f676aaf473e46e54aadd409f6ff1b1eb0c;hb=c473a39a7da07fbe5b80fec4c08111a554691c3a;hp=41408c23ccb4a396d92d814366824a5871475ae5;hpb=d7ae0ed4fd755ebad0788a17d0f2fb6a6ca9d63b;p=quix0rs-gnu-social.git diff --git a/actions/shownotice.php b/actions/shownotice.php index 41408c23cc..d09100f676 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -103,7 +103,7 @@ class ShownoticeAction extends OwnerDesignAction $this->user = User::staticGet('id', $this->profile->id); - if (! $this->notice->is_local) { + if ($this->notice->is_local == Notice::REMOTE_OMB) { common_redirect($this->notice->uri); return false; } @@ -172,9 +172,9 @@ class ShownoticeAction extends OwnerDesignAction function title() { if (!empty($this->profile->fullname)) { - $base = $this->profile->fullname . ' (' . $this->user->nickname . ') '; + $base = $this->profile->fullname . ' (' . $this->profile->nickname . ') '; } else { - $base = $this->user->nickname; + $base = $this->profile->nickname; } return sprintf(_('%1$s\'s status on %2$s'),