aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-12 20:06:11 +0000
committerMario <mario@mariovavti.com>2021-10-12 20:06:11 +0000
commitca32850a32986f0bb7ecbd2168119d4961e900c9 (patch)
treebdb1c1b04368ab5adf0c927f0fc66f6f4f7dd59d /include/photos.php
parentba6f0699972af6e984802cb0460c8fecd43afa59 (diff)
downloadvolse-hubzilla-ca32850a32986f0bb7ecbd2168119d4961e900c9.tar.gz
volse-hubzilla-ca32850a32986f0bb7ecbd2168119d4961e900c9.tar.bz2
volse-hubzilla-ca32850a32986f0bb7ecbd2168119d4961e900c9.zip
fix image object as per AS2
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/photos.php b/include/photos.php
index 967acf955..6ee57ba39 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -263,8 +263,8 @@ function photo_upload($channel, $observer, $args) {
$r0 = $ph->save($p);
$url[0] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-0.' . $ph->getExt(),
'width' => $width,
'height' => $height
@@ -282,8 +282,8 @@ function photo_upload($channel, $observer, $args) {
$r1 = $ph->storeThumbnail($p, PHOTO_RES_1024);
$url[1] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-1.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()
@@ -296,8 +296,8 @@ function photo_upload($channel, $observer, $args) {
$r2 = $ph->storeThumbnail($p, PHOTO_RES_640);
$url[2] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-2.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()
@@ -310,8 +310,8 @@ function photo_upload($channel, $observer, $args) {
$r3 = $ph->storeThumbnail($p, PHOTO_RES_320);
$url[3] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-3.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()