Fabio Manganiello on Nostr: > is there any standard container format for such things? Not that I'm aware of, but ...
> is there any standard container format for such things?
Not that I'm aware of, but I'd love to be proved wrong.
My point is basically that whenever a post with a link is shared on a social media platform, that social media platform usually takes the extra step of doing an HTTP request to that link - usually to render page title and main image, or render a dynamic preview if it's a link to another post on the same platform.
Now imagine if platform A had a way to tell website B "hey, I'm a social media platform, not a browser, I'm trying to parse this link from your web server to get a preview; if you also speak my language, could you please return this a response in this format filled with this metadata, and optionally with these API links to instruct my user how to interact with your content (comment, like, share etc.), instead of returning some raw HTML that I'm supposed to scrape anyway?"
How this could be done is an implementation detail - via HTTP `Accept` header, through separate machine-readable links exposed over `/.well-known/*`, through an entirely separate link-to-metadata API etc., but it *can* be definitely done IMHO.
Then supporting also RST/Markdown output, or HTML with limited tags / BBcode style, should be relatively straightforward if the target website clearly tells the requester which is the right content type for each fragment of metadata.
Of course, the only blocker against such an implementation is that major social media platforms would see it as a backdoor for scraping. But again, it's a business/political problem, not a technological one.
Published at
2024-05-27 21:50:44Event JSON
{
"id": "3e26ac607172bc5253efabbfe1cbb0857e876c5fef03a7a9407e4846d806f76e",
"pubkey": "8179879e743ecc0b539b67420e7dc29a1f097751a00fa1c74d3cea319465223b",
"created_at": 1716846644,
"kind": 1,
"tags": [
[
"p",
"8179879e743ecc0b539b67420e7dc29a1f097751a00fa1c74d3cea319465223b"
],
[
"e",
"8a03e46a8b1f73d2a6be1f4d709a4da742ed07ba4d13953f3451d5fbc7b08271",
"",
"reply"
],
[
"p",
"d704f0ae435f081465cf287c52be636b181c21270bd937b1fab7b62e973d05db"
],
[
"e",
"3b8222adbe4584ef06851942a8994f1a1fd1021f5ff4fc4be9d1d310a99ecbc9",
"",
"root"
],
[
"proxy",
"https://manganiello.social/objects/2b97bf51-c64d-4502-a926-078003372f28",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://manganiello.social/objects/2b97bf51-c64d-4502-a926-078003372f28",
"pink.momostr"
]
],
"content": "\u003e is there any standard container format for such things?\n\nNot that I'm aware of, but I'd love to be proved wrong.\n\nMy point is basically that whenever a post with a link is shared on a social media platform, that social media platform usually takes the extra step of doing an HTTP request to that link - usually to render page title and main image, or render a dynamic preview if it's a link to another post on the same platform.\n\nNow imagine if platform A had a way to tell website B \"hey, I'm a social media platform, not a browser, I'm trying to parse this link from your web server to get a preview; if you also speak my language, could you please return this a response in this format filled with this metadata, and optionally with these API links to instruct my user how to interact with your content (comment, like, share etc.), instead of returning some raw HTML that I'm supposed to scrape anyway?\"\n\nHow this could be done is an implementation detail - via HTTP `Accept` header, through separate machine-readable links exposed over `/.well-known/*`, through an entirely separate link-to-metadata API etc., but it *can* be definitely done IMHO.\n\nThen supporting also RST/Markdown output, or HTML with limited tags / BBcode style, should be relatively straightforward if the target website clearly tells the requester which is the right content type for each fragment of metadata.\n\nOf course, the only blocker against such an implementation is that major social media platforms would see it as a backdoor for scraping. But again, it's a business/political problem, not a technological one.",
"sig": "1ba277a10021df614e886877e38dfbabfae6c860788856795a1c6e22f2e395ffd23a9205da5112009c9c3a9a16bb94969e02939c3371e607cb9a4a3f09c74b5d"
}