diff options
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Photo.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 5e52bcf28..40c36e8fe 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -99,8 +99,10 @@ class Photo extends \Zotlabs\Web\Controller { } if(! $data) { - header("Location: " . z_root() . '/' . $default); - killme(); + $x = z_fetch_url(z_root() . '/' . $default, true, 0, [ 'novalidate' => true ]); + $data = ($x['success'] ? $x['body'] : EMPTY_STR); + $mimetype = 'image/png'; + $modified = filemtime($default); } $cachecontrol = ', must-revalidate'; |