aaronpk/Aperture

Potential issue with mastodon microformats photo parsing

jk-na opened this issue · 2 comments

jk-na commented

Hello,

I raised a ticket with Indigenous for Android (IndiePass/indiepass-android#415) in which I mentioned that images attached to mastodon posts when following the microformats stream via aperture, aren't being displayed in indigenous.

@swentel mentioned that they thought the issue might lie with xray or aperture.

I've tested an example post (https://mstdn.social/@JonathanMBR/105865534992829993) via xray.p3k.io and it seems contains the photos, so xray seems OK.

{
    "data": {
        "type": "entry",
        "url": "https://mstdn.social/@JonathanMBR/105865534992829993",
        "published": "2021-03-10T12:37:47+00:00",
        "content": {
            "text": "Because of their nomadic nature, Turkana people build temporary houses like these.",
            "html": "<p>Because of their nomadic nature, Turkana people build temporary houses like these.</p>"
        },
        "photo": [
            "https://mstdn.social/system/media_attachments/files/105/865/528/538/663/610/original/bca8672dce9a6436.jpeg",
            "https://mstdn.social/system/media_attachments/files/105/865/528/580/457/542/original/99dfc5506b8a0de5.jpeg"
        ],
        "author": {
            "type": "card",
            "name": "Jonathan Mburugu",
            "url": "https://mstdn.social/@JonathanMBR",
            "photo": "https://mstdn.social/system/accounts/avatars/000/179/051/original/f8e979470ecfd9e4.jpg",
            "nickname": "JonathanMBR"
        },
        "post-type": "photo"
    },
    "url": "https://mstdn.social/@JonathanMBR/105865534992829993",
    "code": 200,
    "source-format": "activity+json"
}

Is there some further parsing done with aperture?

Or is it possible that the mastodon microformats stream itself (https://mstdn.io/@JonathanMBR) is missing components that are included in the individual post page that I tested? (I know this is more of a mastodon question but I'm not sure what xray is checking for so am not sure what elements to look for in the source code)

jk-na commented

Screenshot_20210310-193630_Indigenous

By way of an example of how it looks in indigenous. The top post is from the RSS feed of the account and contains a photo but the microformats version below does not. As an aside I've opened an xray issue as the parsed RSS feed contains just one photo even though the original RSS item contains two.

jk-na commented

Having the same experience with monocle and together.