Skip to content

Duplicate mf2 properties #94

@gRegorLove

Description

@gRegorLove

Some properties are getting duplicated, most notably p-name because the link previews in indieweb chat concatenated them together.

Example post (archived)

u-url, dt-published, dt-updated, and the author's h-card are also duplicated, though most of those probably wouldn't interfere with link previews.

Parsed mf2:

    "items": [
        {
            "type": [
                "h-entry"
            ],
            "properties": {
                "name": [
                    "Once Again, From The Top",
                    "Okay, I\u2019m going to keep this short, sweet & simple. I made a mistake experimenting with some plugins on my #Wordpress install that wound up giving me a poor user experience. I headdesked a bit late last night after I discovered my error and had to rebuild the #Linode instance it runs on. I\u2019m not quite sure if I figured out what went wrong, but it might have to do with the #SimpleLocation plugin not wanting to work properly and display maps from Google despite the fact I have a fresh API key. The issues got so bad, I couldn\u2019t make any posts, and that lead to me going through the song & dance to get back to where I am now. I\u2019ll just say this\u2026 I\u2019ll take the user experience a bit at a time from now on. I think I bit off more then I could chew, and it bit me in the ass. So, once again\u2026 from the top."
                ],
                "summary": [
                    "Okay, I\u2019m going to keep this short, sweet & simple. I made a mistake experimenting with some plugins on my #Wordpress install that wound up giving me a poor user experience. I headdesked a bit late last night after I discovered my error and had to rebuild the #Linode instance it runs on. I\u2019m not quite sure if I figured out what went wrong, but it might have to do with the #SimpleLocation plugin not wanting to work properly and display maps from Google despite the fact I have a fresh API key. The issues got so bad, I couldn\u2019t make any posts, and that lead to me going through the song & dance to get back to where I am now. I\u2019ll just say this\u2026 I\u2019ll take the user experience a bit at a time from now on. I think I bit off more then I could chew, and it bit me in the ass. So, once again\u2026 from the top."
                ],
                "url": [
                    "https://gregsplace.net/2023/05/17/once-again-from-the-top/",
                    "https://gregsplace.net/2023/05/17/once-again-from-the-top/",
                    "https://gregsplace.net/2023/05/17/once-again-from-the-top/"
                ],
                "bridgy-fed": [
                    "https://fed.brid.gy/"
                ],
                "updated": [
                    "2023-05-17T15:21:20-07:00",
                    "2023-05-17T15:21:20-07:00"
                ],
                "published": [
                    "2023-05-17T15:21:20-07:00",
                    "2023-05-17T15:21:20-07:00"
                ],
                "content": [
                    {
                        "html": "<p>Okay, I&#x2019;m going to keep this short, sweet &amp; simple. I made a mistake experimenting with some plugins on my #Wordpress install that wound up giving me a poor user experience. I headdesked a bit late last night after I discovered my error and had to rebuild the #Linode instance it runs on. I&#x2019;m not quite sure if I figured out what went wrong, but it might have to do with the #SimpleLocation plugin not wanting to work properly and display maps from Google despite the fact I have a fresh API key. The issues got so bad, I couldn&#x2019;t make any posts, and that lead to me going through the song &amp; dance to get back to where I am now. I&#x2019;ll just say this&#x2026; I&#x2019;ll take the user experience a bit at a time from now on. I think I bit off more then I could chew, and it bit me in the ass. So, once again&#x2026; from the top.</p>\n<p><a class=\"u-bridgy-fed\" href=\"https://fed.brid.gy/\"></a></p>",
                        "value": "Okay, I\u2019m going to keep this short, sweet & simple. I made a mistake experimenting with some plugins on my #Wordpress install that wound up giving me a poor user experience. I headdesked a bit late last night after I discovered my error and had to rebuild the #Linode instance it runs on. I\u2019m not quite sure if I figured out what went wrong, but it might have to do with the #SimpleLocation plugin not wanting to work properly and display maps from Google despite the fact I have a fresh API key. The issues got so bad, I couldn\u2019t make any posts, and that lead to me going through the song & dance to get back to where I am now. I\u2019ll just say this\u2026 I\u2019ll take the user experience a bit at a time from now on. I think I bit off more then I could chew, and it bit me in the ass. So, once again\u2026 from the top.",
                        "lang": "en-US"
                    }
                ],
                "author": [
                    {
                        "type": [
                            "h-card"
                        ],
                        "properties": {
                            "name": [
                                "Greg Lopez"
                            ],
                            "photo": [
                                {
                                    "value": "https://secure.gravatar.com/avatar/dc5d9405db0e6d8f7c2f2f59faf7bd66?s=90&d=mm&r=g",
                                    "alt": ""
                                }
                            ],
                            "url": [
                                "https://gregsplace.net"
                            ],
                            "uid": [
                                "https://gregsplace.net"
                            ]
                        },
                        "lang": "en-US",
                        "value": "Greg Lopez"
                    },
                    {
                        "type": [
                            "h-card"
                        ],
                        "properties": {
                            "name": [
                                "Greg Lopez"
                            ],
                            "photo": [
                                {
                                    "value": "https://secure.gravatar.com/avatar/dc5d9405db0e6d8f7c2f2f59faf7bd66?s=90&d=mm&r=g",
                                    "alt": ""
                                }
                            ],
                            "url": [
                                "https://gregsplace.net"
                            ],
                            "uid": [
                                "https://gregsplace.net"
                            ]
                        },
                        "lang": "en-US",
                        "value": "Greg Lopez"
                    }
                ]
            },
            "id": "content",
            "lang": "en-US"
        },
        {
            "type": [
                "h-card"
            ],
            "properties": {
                "name": [
                    "Greg Lopez"
                ],
                "note": [
                    "Greg Lopez is a blind tech enthusiast in his mid 40's from the Pacific Northwest region of the United States who is just beginning his journey within the IndieWeb by learning how all the technological pieces fit together as he builds his own personal website. He is also an avid listener of audio books, a player of both online text-based and traditional tabletop RPG style games, plus he enjoys consuming movies, music and TV from the last five decades."
                ],
                "url": [
                    "https://gregsplace.net"
                ],
                "uid": [
                    "https://gregsplace.net"
                ],
                "photo": [
                    {
                        "value": "https://secure.gravatar.com/avatar/dc5d9405db0e6d8f7c2f2f59faf7bd66?s=125&d=default&r=g",
                        "alt": ""
                    }
                ]
            },
            "lang": "en-US",
            "children": [
                {
                    "type": [
                        "h-adr"
                    ],
                    "properties": {
                        "locality": [
                            "Burien"
                        ],
                        "region": [
                            "Washington"
                        ]
                    },
                    "lang": "en-US"
                }
            ]
        }
    ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions