aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php29
1 files changed, 22 insertions, 7 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index b31448d81..daab1a741 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1941,13 +1941,28 @@ function asencode_person($p) {
$ret['type'] = 'Person';
$ret['id'] = $p['xchan_url'];
$ret['name'] = $p['xchan_name'];
- $ret['icon'] = [ $p['xchan_photo_l'] ];
- $ret['image'] = [
- 'type' => 'Link',
- 'mediaType' => $p['xchan_photo_mimetype'],
- 'href' => $p['xchan_photo_l'],
- 'height' => 300,
- 'width' => 300
+ $ret['icon'] = [
+ [
+ 'type' => 'Image',
+ 'mediaType' => $p['xchan_photo_mimetype'],
+ 'url' => $p['xchan_photo_l'],
+ 'height' => 300,
+ 'width' => 300,
+ ],
+ [
+ 'type' => 'Image',
+ 'mediaType' => $p['xchan_photo_mimetype'],
+ 'url' => $p['xchan_photo_m'],
+ 'height' => 80,
+ 'width' => 80,
+ ],
+ [
+ 'type' => 'Image',
+ 'mediaType' => $p['xchan_photo_mimetype'],
+ 'url' => $p['xchan_photo_l'],
+ 'height' => 48,
+ 'width' => 48,
+ ]
];
$ret['url'] = [
'type' => 'Link',