Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
We Distribute
  1. Home
  2. Technical Discussion
  3. WordPress and 844e

WordPress and 844e

Scheduled Pinned Locked Moved Technical Discussion
fep844eactivitypubwordpress
11 Posts 5 Posters 375 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • julian@community.nodebb.orgJ This user is from outside of this forum
    julian@community.nodebb.orgJ This user is from outside of this forum
    julian@community.nodebb.org
    wrote on last edited by
    #1

    Hi pfefferle@mastodon.social, I was just curious why activitypub.blog@activitypub.blog was a user and not a group on NodeBB, so I checked out its AP representation on BrowserStack.

    This stood out:

      ...
      "generator": {
        "type": "Application",
        "implements": {
          "href": "https://datatracker.ietf.org/doc/html/rfc9421",
          "name": "RFC-9421: HTTP Message Signatures"
        }
      },
      ...
    

    I thought "how would you be able to represent multiple implementations if implements is an object?

    It looks like it is supposed to be an array, according to FEP 844e.

    As an aside, I guess not all WP actors are groups? I feel like we've had this conversation before though hehe.

    cc silverpill@mitra.social

    1 Reply Last reply
    0
    • System shared this topic on
    • julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.org
      wrote on last edited by
      #2

      May as well ping obenland@mastodon.social while I am at it 😄

      1 Reply Last reply
      0
      • thisismissem@activitypub.spaceT This user is from outside of this forum
        thisismissem@activitypub.spaceT This user is from outside of this forum
        thisismissem@activitypub.space
        wrote on last edited by
        #3

        Every single value is equivalent to an array of a single value in JSON-LD... so these are equivalent:

            "implements": {
              "href": "https://datatracker.ietf.org/doc/html/rfc9421",
              "name": "RFC-9421: HTTP Message Signatures"
            }
        
            "implements": [{
              "href": "https://datatracker.ietf.org/doc/html/rfc9421",
              "name": "RFC-9421: HTTP Message Signatures"
            }]
        

        So it doesn't need "to be an array", but not making it an array could trip up some clients that are not JSON-LD aware.

        1 Reply Last reply
        0
        • thisismissem@activitypub.spaceT This user is from outside of this forum
          thisismissem@activitypub.spaceT This user is from outside of this forum
          thisismissem@activitypub.space
          wrote on last edited by
          #4

          silverpill@mitra.social the second code example in FEP 844e is wrong though, it uses [ and ] instead of { and } around the "object" in implements

          1 Reply Last reply
          1
          • pfefferle@mastodon.socialP This user is from outside of this forum
            pfefferle@mastodon.socialP This user is from outside of this forum
            pfefferle@mastodon.social
            wrote on last edited by
            #5

            @thisismissem thanks for your input!

            So even if it is not wrong in WordPress, I agree with your consumer example and update the implementation to always use arrays even for single objects.

            1 Reply Last reply
            1
            • julian@activitypub.spaceJ This user is from outside of this forum
              julian@activitypub.spaceJ This user is from outside of this forum
              julian@activitypub.space
              wrote on last edited by
              #6

              thisismissem said in WordPress and 844e:
              > Every single value is equivalent to an array of a single value in JSON-LD... so these are equivalent:

              Every day I discover another reason to dislike JSON-LD.

              1 Reply Last reply
              2
              • silverpill@mitra.socialS This user is from outside of this forum
                silverpill@mitra.socialS This user is from outside of this forum
                silverpill@mitra.social
                wrote on last edited by
                #7

                @thisismissem Fixed! https://codeberg.org/fediverse/fep/pulls/679

                cc @pfefferle

                pfefferle@mastodon.socialP 1 Reply Last reply
                1
                • silverpill@mitra.socialS silverpill@mitra.social

                  @thisismissem Fixed! https://codeberg.org/fediverse/fep/pulls/679

                  cc @pfefferle

                  pfefferle@mastodon.socialP This user is from outside of this forum
                  pfefferle@mastodon.socialP This user is from outside of this forum
                  pfefferle@mastodon.social
                  wrote on last edited by
                  #8

                  @silverpill @thisismissem @technical-discussion can you maybe also point the namespace URI to a proper JSON-LD? I had some issues with debugging tools like browser.pub

                  silverpill@mitra.socialS 1 Reply Last reply
                  1
                  • silverpill@mitra.socialS This user is from outside of this forum
                    silverpill@mitra.socialS This user is from outside of this forum
                    silverpill@mitra.social
                    wrote on last edited by
                    #9

                    @thisismissem In my FEPs I usually take "JSON-first" approach. Data types are specified because that makes life easier for JSON producers and consumers.

                    1 Reply Last reply
                    0
                    • pfefferle@mastodon.socialP pfefferle@mastodon.social

                      @silverpill @thisismissem @technical-discussion can you maybe also point the namespace URI to a proper JSON-LD? I had some issues with debugging tools like browser.pub

                      silverpill@mitra.socialS This user is from outside of this forum
                      silverpill@mitra.socialS This user is from outside of this forum
                      silverpill@mitra.social
                      wrote on last edited by
                      #10

                      @pfefferle The namespace is https://w3id.org/fep/844e. I copypasted the actor example into JSON-LD playground, it appears to be working.

                      pfefferle@mastodon.socialP 1 Reply Last reply
                      0
                      • silverpill@mitra.socialS silverpill@mitra.social

                        @pfefferle The namespace is https://w3id.org/fep/844e. I copypasted the actor example into JSON-LD playground, it appears to be working.

                        pfefferle@mastodon.socialP This user is from outside of this forum
                        pfefferle@mastodon.socialP This user is from outside of this forum
                        pfefferle@mastodon.social
                        wrote on last edited by
                        #11

                        @silverpill @technical-discussion /cc @js

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups