Ryan Barrett

Results 2014 comments of Ryan Barrett

related: https://github.com/bluesky-social/atproto/discussions/1754

@bumblefudge do you mean eg media that instances make copies/transcodings of and host themselves, like masto.host on their CDN?

The source URL doesn't contain a fragment, it contains `%23`, which happens to be an _encoded_ `#` character. I think the plugin(s) are decoding that part of the URL, but...

From @sknebel [in chat](https://chat.indieweb.org/dev/2023-03-30#t1680189079875700): > for keys and vaues, percent-encode everything "except the ASCII alphanumeric, U+002A (*), U+002D (-), U+002E (.), and U+005F (_). " > HTML spec: https://url.spec.whatwg.org/#concept-urlencoded-serializer (and...

I've also confirmed that my code is doing the same thing, ie the `#` is double-URL-encoded to `%2523`, so the raw webmention POST body looks like: ``` source=https%3A%2F%2Ffed.brid.gy%2Frender%3Fid%3Dhttps%253A%252F%252Findieweb.social%252Fusers%252Fsnarfed%2523likes%252F709275&target=https%3A%2F%2Fsnarfed.org%2F2023-03-28_49662 ``` Note...

Looks like this isn't about the `#` character at all. I added custom encoding for `#`s, I'm now replacing them with `^^`, and I'm still hitting this problem. Here's an...

Here are example WP debug logs I see for a failed webmention with a source URL with `^^` in it: ``` [25-May-2023 02:21:48 UTC] REST request: /webmention/1.0/endpoint: {"source":"https:\/\/fed.brid.gy\/convert\/activitypub\/webmention\/https:\/mastodon.social\/users\/notblanklikes\/88327162","target":"https:\/\/snarfed.org\/2023-05-24_50288"}(Header Present) [25-May-2023...

Hah, fair point, maybe I'm being a bit difficult here. Sorry! This bug does seem unrelated to any individual characters though, since it happens when they're URL-encoded too, eg the...

Odd: I switched back from `^^` to `%23` recently, and now I'm seeing some of these source URLs work after all. Example: https://ap.brid.gy/convert/web/https:/bayes.club/users/zerology%23likes/32983 on https://snarfed.org/2023-07-10_50589

Hmm! You're right about the top source URL in the original description, https://fed.brid.gy/render?id=https%3A%2F%2Findieweb.social%2Fusers%2Fsnarfed%23likes%2F709275 . Not sure what's going on there. The rest of the source URLs here are valid `u-like-of`s...