From ca32850a32986f0bb7ecbd2168119d4961e900c9 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 12 Oct 2021 20:06:11 +0000 Subject: fix image object as per AS2 --- include/photos.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/photos.php') 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() -- cgit v1.2.3