Dereferencer needs to understand HTML
Just realized that at least in our cases, the id
attribute leads to an HTML page and the server isn't configured to redirect to the JSON-LD activity if it finds an accept: application/ld+json
header on the request. So we'll need to parse the HTML5, find the <meta>
tag linking to the activity and refetch it.
I wonder if we could do this while streaming the page contents instead of downloading and parsing everything.
Also could we try it as a redirect on HTTParty?