some corrections to AS encoding based on the current spec (some of this work was completed long before the spec settled).
This commit is contained in:
parent
d8c93c0d13
commit
9daa3b85c8
@ -1941,13 +1941,28 @@ function asencode_person($p) {
|
|||||||
$ret['type'] = 'Person';
|
$ret['type'] = 'Person';
|
||||||
$ret['id'] = $p['xchan_url'];
|
$ret['id'] = $p['xchan_url'];
|
||||||
$ret['name'] = $p['xchan_name'];
|
$ret['name'] = $p['xchan_name'];
|
||||||
$ret['icon'] = [ $p['xchan_photo_l'] ];
|
$ret['icon'] = [
|
||||||
$ret['image'] = [
|
[
|
||||||
'type' => 'Link',
|
'type' => 'Image',
|
||||||
'mediaType' => $p['xchan_photo_mimetype'],
|
'mediaType' => $p['xchan_photo_mimetype'],
|
||||||
'href' => $p['xchan_photo_l'],
|
'url' => $p['xchan_photo_l'],
|
||||||
'height' => 300,
|
'height' => 300,
|
||||||
'width' => 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'] = [
|
$ret['url'] = [
|
||||||
'type' => 'Link',
|
'type' => 'Link',
|
||||||
|
Reference in New Issue
Block a user