]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - actions/attachment_download.php
Add /download action for attachments
[quix0rs-gnu-social.git] / actions / attachment_download.php
1 <?php
2
3 if (!defined('GNUSOCIAL')) { exit(1); }
4
5 /**
6  * Download notice attachment
7  *
8  * @category Personal
9  * @package  GNUsocial
10  * @author   Mikael Nordfeldth <mmn@hethane.se>
11  * @license  https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
12  * @link     https:/gnu.io/social
13  */
14 class Attachment_downloadAction extends AttachmentAction
15 {
16     public function showPage()
17     {
18         common_redirect($this->attachment->getUrl(), 302);
19     }
20 }