]> git.mxchange.org Git - friendica.git/commitdiff
sizes links in xml output of api/frienidca/photo is an array
authorfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 08:46:18 +0000 (09:46 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 09:23:06 +0000 (10:23 +0100)
view/templates/api_photo_detail_xml.tpl

index 335ec0a9d3a15bbe7886aca49ca16ee7411bf4ee..0b0602901bc62b67f6c4e4ec5dff4f09afdbb2f6 100644 (file)
@@ -12,9 +12,9 @@
        <width>{{$photo.width}}</width>
        <datasize>{{$photo.datasize}}</datasize>
        <profile>1</profile>
-       <url>{{foreach $photo.link as $scale => $url}}
+       <links type="array">{{foreach $photo.link as $scale => $url}}
                <link type="{{$photo.type}}" scale="{{$scale}}" href="{{$url}}" />
-       {{/foreach}}</url>
+       {{/foreach}}</links>
        {{if $photo.data}}
        <data encode="base64">{{$photo.data}}</data>
        {{/if}}