attachment_download.php 481 B

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