Open jamietanna opened 4 years ago
This appears to affect both the JSON format:
{
"type": "entry",
"author": {
"type": "card",
"name": "Jamie Tanna",
"photo": "https://webmention.io/avatar/www.jvt.me/1a30a04da8e03ed78b17bd01777f3892c95de2a05f974eaa739b858aaa1749d4.png",
"url": "https://www.jvt.me"
},
"url": "https://www.jvt.me/mf2/2019/12/jmtk9/",
"published": "2019-12-05T17:25:00",
"wm-received": "2019-12-11T10:57:10Z",
"wm-id": 732974,
"wm-source": "https://www.jvt.me/mf2/2019/12/jmtk9/",
"wm-target": "https://www.jvt.me",
"name": "Improving CLIs with isatty",
"bookmark-of": "https://www.jvt.me",
"wm-property": "bookmark-of",
"wm-private": false,
"rels": {
"canonical": "https://www.jvt.me/mf2/2019/12/jmtk9/"
}
},
And the Atom format:
<entry>
<title>www.jvt.me bookmarked /</title>
<id>https://webmention.io/api/mention/732974</id>
<summary>https://www.jvt.me/mf2/2019/12/jmtk9/ bookmarked https://www.jvt.me/</summary>
<updated>2019-12-11T10:57:11+00:00</updated>
<content type="xhtml" xml:lang="en">
<div xmlns="http://www.w3.org/1999/xhtml">
<p><a href="https://www.jvt.me/mf2/2019/12/jmtk9/">https://www.jvt.me/mf2/2019/12/jmtk9/</a> bookmarked <a href="https://www.jvt.me/">https://www.jvt.me/</a></p>
</div>
</content>
</entry>
Despite the post not being a bookmark of that page:
And XRay responds with:
{
"data": {
"type": "entry",
"published": "2019-12-05T17:25:00Z",
"url": "https://www.jvt.me/mf2/2019/12/jmtk9/",
"category": [
"command-line"
],
"bookmark-of": [
"https://blog.jez.io/cli-tty/"
],
"name": "Improving CLIs with isatty",
"author": {
"type": "card",
"name": "Jamie Tanna",
"url": "https://www.jvt.me",
"photo": "https://www.jvt.me/img/profile.png"
},
"post-type": "bookmark",
"rels": {
"canonical": "https://www.jvt.me/mf2/2019/12/jmtk9/"
}
},
"url": "https://www.jvt.me/mf2/2019/12/jmtk9/",
"code": 200,
"source-format": "mf2+html"
}
@aaronpk is this something that you'd maybe be able to investigate in the debug logs? I'm having quite a bit of difficulty getting the project set up locally to validate myself
Aaron's responses on chat can be found at https://chat.indieweb.org/meta/2020-03-06
I've recently been noticing some weirdness around the Webmentions I receive for certain posts, primarily likes/bookmarks.
Within my posts I have both the post's
u-url
, and a childp-author h-card
which has its ownu-url
.I'll receive a Webmention with the URL of the interaction being my profile URL (from my author information) rather than it being the URL of the post itself.
Example 1
Post: https://www.jvt.me/mf2/c0139cf9-10db-4d1e-9635-c746f305e195/ Parsed MF2:
Parsed MF2 as JSON
```json { "items": [ { "type": [ "h-entry" ], "properties": { "name": [ "Blog service workers and the chicken and the egg" ], "category": [ "service-workers" ], "bookmark-of": [ "https://remysharp.com/2019/10/01/blog-service-workers-and-the-chicken-and-the-egg" ], "uid": [ "https://www.jvt.me/mf2/c0139cf9-10db-4d1e-9635-c746f305e195/" ], "url": [ "https://www.jvt.me/mf2/c0139cf9-10db-4d1e-9635-c746f305e195/" ], "published": [ "2019-10-03T14:13:00+0100" ], "author": [ { "type": [ "h-card" ], "properties": { "name": [ "Jamie Tanna" ], "photo": [ "https://www.jvt.me/img/profile.png" ], "url": [ "https://www.jvt.me" ] }, "lang": "en-GB", "value": "Jamie Tanna" } ] }, "lang": "en-GB" } ], "rels": { snipped for brevity }, "rel-urls": { snipped for brevity }, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "source": "https://github.com/indieweb/php-mf2", "version": "0.4.6", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues", "Using the Masterminds HTML5 parser" ] } } ```Webmention:
Example 2
Post: https://www.jvt.me/posts/2019/10/03/indiewebcamp-amsterdam-2019/ Parsed MF2:
Parsed MF2 as JSON
```json { "items": [ { "type": [ "h-entry" ], "properties": { "name": [ "IndieWebCamp Amsterdam 2019" ], "summary": [ "Recapping my time at IndieWebCamp Amsterdam, my first 'official' IndieWeb event, and meeting some of the big names in the community." ], "category": [ "indiewebcamp-amsterdam-2019", "indieweb", "indiewebcamp", "webmention", "micropub", "syndication", "privacy" ], "url": [ "https://www.jvt.me/posts/2019/10/03/indiewebcamp-amsterdam-2019/" ], "uid": [ "https://www.jvt.me/posts/2019/10/03/indiewebcamp-amsterdam-2019/" ], "featured": [ "https://www.jvt.me/img/indiewebcamp-amsterdam-2019/group-aaronpk.jpg" ], "syndication": [ "https://news.indieweb.org/en", "https://indieweb.xyz/en/indieweb" ], "published": [ "2019-10-03 19:14:04 +0100 BST" ], "updated": [ "2019-10-03 19:14:06 +0100 BST" ], "content": [ { "html": "snipped for brevity", "value": "snipped for brevity", "lang": "en-GB" } ], "author": [ { "type": [ "h-card" ], "properties": { "name": [ "Jamie Tanna" ], "photo": [ "https://www.jvt.me/img/profile.png" ], "url": [ "https://www.jvt.me" ] }, "lang": "en-GB", "value": "Jamie Tanna" } ] }, "lang": "en-GB", "children": [ snipped for brevity ] } ], "rels": { snipped for brevity }, "rel-urls": { snipped for brevity }, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "source": "https://github.com/indieweb/php-mf2", "version": "0.4.6", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues", "Using the Masterminds HTML5 parser" ] } } ```Webmention: