swicg / activitypub-html-discovery

Other
20 stars 0 forks source link

HTML to ActivityPub: Consider HTML values of `summary`/`content` within AS2 objects #37

Open trwnh opened 4 hours ago

trwnh commented 4 hours ago

One user story says:

As a social network client user, when I see a link in the content of a social media post, I want to load the resource for that link into my social media client without launching an external browser, so that I have a smooth user experience and can fully interact with the content. Given a link like https://html.example/blog/page-1.html, an ActivityPub API client could discover the related ActivityPub ID https://ap.example/api/page-1.jsonld, retrieve it with machine-readable metadata, and provide affordances for interacting with the object, such as liking, sharing, or replying.

For this user story, it is necessary to consider not just HTML documents but also HTML strings within AS2 objects.

I think 2.2.2 https://swicg.github.io/activitypub-html-discovery/#html-a-element should contain a further example and consideration for marking up HTML values within an AS2 object along the same lines:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "id": "https://ap.example/api/notes/note-9999.jsonld",
  "content": "Check out <a href=\"https://ap.example/api/notes/note-9998.jsonld\" type=\"application/activity+json\">my previous note</a>"
}