diff options
author | zotlabs <mike@macgirvin.com> | 2017-07-17 22:52:19 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-07-17 22:52:19 -0700 |
commit | 9daa3b85c8b3ee48222a4b6c7c7ba70a3ca57fbb (patch) | |
tree | 532944f34ba675decbefd140f0d1e55378aa21a0 /include/feedutils.php | |
parent | d8c93c0d13133d336e2cc3dbf3c48e0a6350c2d6 (diff) | |
download | volse-hubzilla-9daa3b85c8b3ee48222a4b6c7c7ba70a3ca57fbb.tar.gz volse-hubzilla-9daa3b85c8b3ee48222a4b6c7c7ba70a3ca57fbb.tar.bz2 volse-hubzilla-9daa3b85c8b3ee48222a4b6c7c7ba70a3ca57fbb.zip |
some corrections to AS encoding based on the current spec (some of this work was completed long before the spec settled).
Diffstat (limited to 'include/feedutils.php')
-rw-r--r-- | include/feedutils.php | 29 |
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', |