Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential issue with mastodon microformats photo parsing #103

Open
jk-na opened this issue Mar 10, 2021 · 2 comments
Open

Potential issue with mastodon microformats photo parsing #103

jk-na opened this issue Mar 10, 2021 · 2 comments

Comments

@jk-na
Copy link

jk-na commented Mar 10, 2021

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
Copy link
Author

jk-na commented Mar 10, 2021

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
Copy link
Author

jk-na commented Mar 10, 2021

Having the same experience with monocle and together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant