aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-06-28 00:36:29 +0000
committerMario <mario@mariovavti.com>2019-06-28 09:42:19 +0200
commit62b31b1e4adfe660e130d70b01eaa9cf2177590a (patch)
treec9360b4fcb366b8aabda45d15b3979789982eef1 /include/photos.php
parentddde4e19659862f6147c304224c390119bdb4d0a (diff)
downloadvolse-hubzilla-62b31b1e4adfe660e130d70b01eaa9cf2177590a.tar.gz
volse-hubzilla-62b31b1e4adfe660e130d70b01eaa9cf2177590a.tar.bz2
volse-hubzilla-62b31b1e4adfe660e130d70b01eaa9cf2177590a.zip
photo objects: incorrect media type on links
(cherry picked from commit 60c003733e7fed70f28eadaf3d9abcf16ec3a8ab)
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/photos.php b/include/photos.php
index 7fd712f3e..ee662f707 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -261,7 +261,7 @@ function photo_upload($channel, $observer, $args) {
$r0 = $ph->save($p);
$link[0] = array(
'rel' => 'alternate',
- 'type' => 'text/html',
+ 'type' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-0.' . $ph->getExt(),
'width' => $width,
'height' => $height
@@ -280,7 +280,7 @@ function photo_upload($channel, $observer, $args) {
$r1 = $ph->storeThumbnail($p, PHOTO_RES_1024);
$link[1] = array(
'rel' => 'alternate',
- 'type' => 'text/html',
+ 'type' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-1.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()
@@ -294,7 +294,7 @@ function photo_upload($channel, $observer, $args) {
$r2 = $ph->storeThumbnail($p, PHOTO_RES_640);
$link[2] = array(
'rel' => 'alternate',
- 'type' => 'text/html',
+ 'type' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-2.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()
@@ -308,7 +308,7 @@ function photo_upload($channel, $observer, $args) {
$r3 = $ph->storeThumbnail($p, PHOTO_RES_320);
$link[3] = array(
'rel' => 'alternate',
- 'type' => 'text/html',
+ 'type' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-3.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()