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

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

Conversation

Notices

  1. Embed this notice
    @reiver ⊼ (Charles) :batman: (reiver@mastodon.social)'s status on Monday, 31-Mar-2025 20:18:06 JST @reiver ⊼ (Charles) :batman: @reiver ⊼ (Charles) :batman:

    Currently, the way I am determining if content is valid ActivityPub / ActivityStreams content is —

    №1:

    Determining if it is valid JSON.

    №2:

    Checking if it has a "type" field.

    And that is it.

    #ActivityPub #ActivityStreams #DeSo #FediDev #FediDevs #Fediverse #JSONLD

    In conversation about 2 months ago from mastodon.social permalink
    • Embed this notice
      silverpill (silverpill@mitra.social)'s status on Monday, 31-Mar-2025 20:18:05 JST silverpill silverpill
      in reply to

      @reiver It should have id field, because id is used for authentication. type is less important.

      The document should also have a correct Content-Type header.

      In conversation about 2 months ago permalink
    • Embed this notice
      silverpill (silverpill@mitra.social)'s status on Monday, 31-Mar-2025 20:29:26 JST silverpill silverpill
      in reply to

      @reiver Right, objects POSTed to outbox don't need an id. They are not real objects yet

      In conversation about 2 months ago permalink
    • Embed this notice
      @reiver ⊼ (Charles) :batman: (reiver@mastodon.social)'s status on Monday, 31-Mar-2025 20:29:27 JST @reiver ⊼ (Charles) :batman: @reiver ⊼ (Charles) :batman:
      in reply to
      • silverpill

      @silverpill

      Is something that is using the client-server API that HTTP POSTs to an account's outbox supposed to have an "id" field?

      (I thought it wasn't. But perhaps I am mistaken.)

      In conversation about 2 months ago permalink
    • Embed this notice
      silverpill (silverpill@mitra.social)'s status on Monday, 31-Mar-2025 20:36:16 JST silverpill silverpill
      in reply to
      • Dominik

      @chrastecky It can be omitted if object is embedded, but I think @reiver is talking about whole documents.

      In conversation about 2 months ago permalink
    • Embed this notice
      Dominik (chrastecky@phpc.social)'s status on Monday, 31-Mar-2025 20:36:18 JST Dominik Dominik
      in reply to
      • silverpill

      @reiver @silverpill ID field is not necessary, especially for embedded resources. Like Note with an Image, the image doesn't need to have an ID.

      In conversation about 2 months ago permalink
    • Embed this notice
      @reiver ⊼ (Charles) :batman: (reiver@mastodon.social)'s status on Monday, 31-Mar-2025 21:06:18 JST @reiver ⊼ (Charles) :batman: @reiver ⊼ (Charles) :batman:
      in reply to
      • silverpill
      • Dominik

      @silverpill @chrastecky

      I am trying to do some validation on content HTTP POSTed to an accounts outbox.

      And, if there is a problem, return an appropriate error message.

      In conversation about 2 months ago permalink
    • Embed this notice
      silverpill (silverpill@mitra.social)'s status on Monday, 31-Mar-2025 21:06:18 JST silverpill silverpill
      in reply to
      • Dominik

      @reiver @chrastecky Your requirements make sense then. I would additionally check whether POSTed activity/object has any audience fields (to, cc and others).

      In conversation about 2 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • 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.