- $base = $this->profile->getFancyName();
-
- // TRANS: Title of the page that shows a notice.
- // TRANS: %1$s is a user name, %2$s is the notice creation date/time.
- return sprintf(_('%1$s\'s status on %2$s'),
- $base,
- common_exact_date($this->notice->created));
- }
-
- /**
- * Handle input
- *
- * Only handles get, so just show the page.
- *
- * @param array $args $_REQUEST data (unused)
- *
- * @return void
- */
- protected function handle()
- {
- parent::handle();
-
- if ($this->boolean('ajax')) {
- $this->showAjax();
- } else {
- 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().');
- }
- }
- $this->showPage();
- }