- if ($this->notice->is_local == Notice::REMOTE) {
- try {
- $target = $this->notice->getUrl();
- if ($target != $this->selfUrl()) {
- common_redirect($target, 301);
- }
- } catch (InvalidUrlException $e) {
- common_debug('ShownoticeAction could not redirect to remote notice with id='.$this->notice->id . '. Falling back to showPage().');
- }
- }