]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Attachment thumbnail redirect is a 302 redirect
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 6 Jan 2016 19:07:40 +0000 (20:07 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 6 Jan 2016 19:07:40 +0000 (20:07 +0100)
It SHOULD be cached but it might no longer be valid if we empty cache or something.

actions/attachment_thumbnail.php

index e8f89ffc360d45c505aefd5198e4927e9b04a8ec..d1f9f2d00c7b754e188af5bd1c0e457860de5c44 100644 (file)
@@ -59,7 +59,7 @@ class Attachment_thumbnailAction extends AttachmentAction
         try {
             $thumbnail = $this->attachment->getThumbnail($this->thumb_w, $this->thumb_h, $this->thumb_c);
         } catch (UseFileAsThumbnailException $e) {
-            common_redirect($e->file->getUrl());
+            common_redirect($e->file->getUrl(), 302);
         }
 
         common_redirect(File_thumbnail::url($thumbnail->filename));