Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. I'm curious what other devs think about this.

I'm curious what other devs think about this.

Scheduled Pinned Locked Moved Uncategorized
activitypub
25 Posts 8 Posters 0 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.
  • Evan ProdromouE Evan Prodromou

    @steve This is really interesting.

    I see a few cases. One is an ActivityPub API façade for an existing CMS, like Drupal or WordPress. The underlying system only stores Articles, so it tries to fit any input into that format. It might also take a Create/Image and return an Article with an embedded image, say.

    Evan ProdromouE This user is from outside of this forum
    Evan ProdromouE This user is from outside of this forum
    Evan Prodromou
    wrote last edited by
    #21

    @steve I could also see if the server is checking the content type of the payload, and changing it on the fly. For example, a Create/Image with an MP4 movie as the payload, and it changes it to a Video. In the case you're explaining, maybe the Note has many paragraphs, and the server changes it to an Article to match the expectations for that type.

    Evan ProdromouE 1 Reply Last reply
    0
    • Evan ProdromouE Evan Prodromou

      @steve I could also see if the server is checking the content type of the payload, and changing it on the fly. For example, a Create/Image with an MP4 movie as the payload, and it changes it to a Video. In the case you're explaining, maybe the Note has many paragraphs, and the server changes it to an Article to match the expectations for that type.

      Evan ProdromouE This user is from outside of this forum
      Evan ProdromouE This user is from outside of this forum
      Evan Prodromou
      wrote last edited by
      #22

      @steve Finally, just an opinionated server developer -- "there's no difference, everything should be an Article."

      Evan ProdromouE 1 Reply Last reply
      0
      • Evan ProdromouE Evan Prodromou

        @steve Finally, just an opinionated server developer -- "there's no difference, everything should be an Article."

        Evan ProdromouE This user is from outside of this forum
        Evan ProdromouE This user is from outside of this forum
        Evan Prodromou
        wrote last edited by
        #23

        @steve In a way, the server is the most responsible for the object long-term -- it stores and serves the data, assigns it an id, provides security, and so on. It also maintains a long-term relationship with the user, including the user's preferences.

        But the client is closer to the user, in the moment, and may more accurately represent the user's immediate needs and wants.

        Evan ProdromouE 1 Reply Last reply
        0
        • Evan ProdromouE Evan Prodromou

          @steve In a way, the server is the most responsible for the object long-term -- it stores and serves the data, assigns it an id, provides security, and so on. It also maintains a long-term relationship with the user, including the user's preferences.

          But the client is closer to the user, in the moment, and may more accurately represent the user's immediate needs and wants.

          Evan ProdromouE This user is from outside of this forum
          Evan ProdromouE This user is from outside of this forum
          Evan Prodromou
          wrote last edited by
          #24

          @steve I'd say, don't do this if you don't have to.

          1 Reply Last reply
          0
          • Steve BateS Steve Bate

            I'm curious what other devs think about this. If an actor posts an C2S #ActivityPub Create/Note to the outbox, what would you think if the object created by the server was a different type (e.g., Article)?

            infinite love ⴳT This user is from outside of this forum
            infinite love ⴳT This user is from outside of this forum
            infinite love ⴳ
            wrote last edited by
            #25

            @steve i would probably think my outbox was broken or malicious or not doing compliant^1 activitypub.

            ^1: depends on a conformance profile to be meaningfully defined, but "publish what i POSTed" seems to be a reasonable enough expectation in the minimal case...

            1 Reply Last reply
            2
            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