AttachmentAction is a ManagedAction, don't implement handle()

This also gives us more freedom in Attachment_thumbnailAction for example
This commit is contained in:
Mikael Nordfeldth 2015-01-25 02:25:28 +01:00
parent ce8389443b
commit 4b65275e41
1 changed files with 2 additions and 9 deletions

View File

@ -92,21 +92,14 @@ class AttachmentAction extends ManagedAction
return $a->title();
}
/**
* Handle input
*
* Only handles get, so just show the page.
*
* @return void
*/
protected function handle()
public function showPage()
{
if (empty($this->attachment->filename)) {
// if it's not a local file, gtfo
common_redirect($this->attachment->url, 303);
}
parent::handle();
parent::showPage();
}
/**