GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Untitled attachment

Download link

Notices where this attachment appears

  1. Embed this notice
    FenTiger (fentiger@zotum.net)'s status on Saturday, 09-Mar-2024 20:06:16 JST FenTiger FenTiger
    Oh, joy: it turns out that Go's net/url package doesn't understand that DID URLs can have paths.

    Parsing "https://example.social/path/to/object" gives me a useful result:

    &url.URL{
        Scheme:"https",
        Opaque:"",
        Host:"example.social",
        Path:"/path/to/object",
        [...]
    }But parsing "did:ap: key:z6abcdef/path/to/object" gives me this:

    &url.URL{
        Scheme:"did",
        Opaque:"ap🔑z6abcdef/path/to/object",
        Host:"",
        Path:"",
        [...]
    }So I need some kind of wrapper to detect DID URLs and parse the paths out of them. That's easy enough, I suppose, but then I need to actually use that wrapper, in all the relevant places...

    #ActivityPub #FediDev #BangHeadHere
    In conversation about a year ago from zotum.net permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.