Follow

Dang, looks like doesn't handle relative URIs when parsing / data.

For example I can't set the `id` of a post to be a relative URL since it loads it as raw JSON.

github.com/mastodon/mastodon/b

This makes it harder to publish static data to

· · Web · 4 · 0 · 3

Looks like it doesn't handle schemaless URLs either. :P e.g. `//staticpub.mauve.moe/about.jsonld`.

I'll need to use absolute HTTPS URLs while we figure out how to get the relative URLs into the stack. Might need to publish both side by side.

@Aranjedeath Honestly maybe. 👀 I wonder if there are any decent JSON-LD handling libraries for Ruby I could get in there. It might involve a lot of code being touched though.

@mauve i only saw pure // used as very specific outlier usecase for the period of migration from http: to https:, so browser would pick img-src with the same protocol as the webpage.

leaving uri w/o a scheme, is very likely to create way more problems and wrong expectations

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.