How to provide more data for attached links?

In Friendica we can add more data to links, like a summary and/or a preview picture. Question is how to make this in AP.

What about this:
"attachment":[{"type":"Page","mediaType":"text\/html","url":"https:\/\/\/watch?v=UN8bJb8biZU","name":"SLAPP Suits: Last Week Tonight with John Oliver (HBO)","summary":"After winning a legal battle involving a coal executive and a giant squirrel, John Oliver explains how SLAPP suits are designed to stifle public dissent. Con...","icon":{"type":"Image","mediaType":"image\/jpeg","width":1280,"height":720,"url":"https:\/\/\/vi\/UN8bJb8biZU\/maxresdefault.jpg"}}]

Using summary and icon looks fine to me. :slight_smile:

I think this is totally fine technically, but personally I would never trust such fields. I would always fetch any text from a third-party resource myself to ensure it’s correct and up to date.

There are serious abuse possibilities when trusting content in this way. Someone could send an attachment like this referring to someones profile on some social network and add a summary saying something like “I like nazis” when in fact the fetched summary would say something else.

I rather thought of custom information added to the added link, like “warning, requires you to run non-free software!”. for a single link that might not make sense, but if you have multiple links that might be useful.

But I looking at the example helucht made, it rather looks like a preview and then I too would not trust that.

Currently we do send that data inside our BBCode source. I still want to provide that data. I can understand the concerns. But I see this as some kind of convenience.