My current thought for this is to add a new property to the entry with the source's h-card
info:
{
"type": "entry",
"url": "https://example.com/1000",
...
...
"_source": {
"url": https://example.com/",
"name": "Example Feed",
"photo": "https://example.com/photo.jpg"
}
}
My main question is whether the url
should be the home page URL of the feed or the actual feed URL. I'm almost thinking we need to be able to include both.
If you're following an Atom/RSS/JSONfeed, then the feed URL is not something you'd want to send a user to, so you'd want the "home page" URL instead. For HTML feeds, it would be fine to use the feed URL directly.
However from a security perspective, if the entry's URL is on a different domain than the URL the entry was found on, the UI may want to indicate this in some way, similar to how my webmentions display the source URL as "via ____" if the source URL domain is different from the entry's reported URL. The main case this might happen is an aggregator where the every item in the feed is from a different domain than the aggregator's feed. Also micro.blog feeds where the post's original URL is reported instead of the micro.blog URL.
So I'm thinking we might need two properties, feed URL and home page URL. Unfortunately this no longer maps well to h-card
. Any ideas?