snarfed / bridgy-fed

🌉 A bridge between decentralized social network protocols
https://fed.brid.gy/
Creative Commons Zero v1.0 Universal
486 stars 28 forks source link

Web => AP quote posts #1146

Open snarfed opened 1 week ago

snarfed commented 1 week ago

@jamietanna bravely tried a web => AP quote post, and it didn't quite work. Original report in https://github.com/snarfed/bridgy-fed/issues/461#issuecomment-2184202628. Original post at https://www.jvt.me/mf2/2024/06/o0vwu/ has this mf2:

{
  "type": ["h-entry"],
  "properties": {
    "url": ["https://www.jvt.me/mf2/2024/06/o0vwu/"],
    "published": ["2024-06-22T10:07:00+0100"],
    "content": "...",
    "value": "https://fedi.simonwillison.net/@simon/112657932893424962"
    "quotation-of": [{
      "type": ["h-cite"],
      "properties": {
        "url": ["https://fedi.simonwillison.net/@simon/112657932893424962"]
        "name": ["Simon Willison (@simon@simonwillison.net)"],
        "summary": ["(I'm increasingly suspicious that hardly anyone ever clicks on inline links in text like this, but that's not going to stop me from including them!)"]
    }
  }],
  "..."
}

...which BF converted to this AS1, notably with type: article instead of note, so it didn't continue to interpret it as a quote:

{
  "objectType": "note",
  "id": "https://www.jvt.me/mf2/2024/06/o0vwu/"
  "url": "https://www.jvt.me/mf2/2024/06/o0vwu/",
  "published": "2024-06-22T10:07:00+01:00",
  "content": "...",
  "attachments": [{
    "objectType": "article",
    "displayName": "Simon Willison (@simon@simonwillison.net)",
    "summary": "(I'm increasingly suspicious that hardly anyone ever clicks on inline links in text like this, but that's not going to stop me from including them!)",
    "url": "https://fedi.simonwillison.net/@simon/112657932893424962"
  }],
  "..."
}