Skip to content
  • Categories
  • Recent
  • Popular
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

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. General Discussion
  4. AP Test (community.nodebb.org)
  5. Implementation of FEP-7888 (Demystifying the context property)

Implementation of FEP-7888 (Demystifying the context property)

Scheduled Pinned Locked Moved AP Test (community.nodebb.org)
activitypubforumwgfep7888
4 Posts 2 Posters 51 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

    As of today, the NodeBB-ActivityPub implementation now supplies both context and audience properties with every post.

    N.B. When I say context and audience, these are also terms used by the ForumWG that refer to "topic" and "category", in NodeBB parlance.


    Early indications from the last ForumWG meeting indicate movement towards the inclusion of context in a low-level as:Note object (a federated NodeBB post), resolvable as an as:Collection or as:OrderedCollection. The latter is what NodeBB will send, ordered by post time.

    Discussions with @angus@socialhub.activitypub.rocks also suggest that Discourse has the ability to parse an as:OrderedCollection context if provided, but currently does not if encountered as a property in a Note.

    A minor change today also updates the audience property, which used to erroneously point to the context/topic, but now points to the audience/category. This change aligns usage of this property with FEP-1b12's expectations.


    This change should allow other implementors to:

    • automatically group objects together given a the provided context, and
    • more thoroughly backfill a given object's context, without relying on inReplyTo traversal
    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • julian@community.nodebb.orgJ julian@community.nodebb.org

      As of today, the NodeBB-ActivityPub implementation now supplies both context and audience properties with every post.

      N.B. When I say context and audience, these are also terms used by the ForumWG that refer to "topic" and "category", in NodeBB parlance.


      Early indications from the last ForumWG meeting indicate movement towards the inclusion of context in a low-level as:Note object (a federated NodeBB post), resolvable as an as:Collection or as:OrderedCollection. The latter is what NodeBB will send, ordered by post time.

      Discussions with @angus@socialhub.activitypub.rocks also suggest that Discourse has the ability to parse an as:OrderedCollection context if provided, but currently does not if encountered as a property in a Note.

      A minor change today also updates the audience property, which used to erroneously point to the context/topic, but now points to the audience/category. This change aligns usage of this property with FEP-1b12's expectations.


      This change should allow other implementors to:

      • automatically group objects together given a the provided context, and
      • more thoroughly backfill a given object's context, without relying on inReplyTo traversal
      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

      @trwnh@mastodon.social follow-up question re: 7888...

      Right now when a post is made, the context is the topic. If I later on add the ability for NodeBB to send activites to contexts (and parse the resultant Add), is there an expectation that that context replaces my own local context?

      Perhaps I could send an array of contexts, although I am not certain whether that is going to cause problems.

      trwnh@mastodon.socialT 1 Reply Last reply
      0
      • julian@community.nodebb.orgJ julian@community.nodebb.org

        @trwnh@mastodon.social follow-up question re: 7888...

        Right now when a post is made, the context is the topic. If I later on add the ability for NodeBB to send activites to contexts (and parse the resultant Add), is there an expectation that that context replaces my own local context?

        Perhaps I could send an array of contexts, although I am not certain whether that is going to cause problems.

        trwnh@mastodon.socialT This user is from outside of this forum
        trwnh@mastodon.socialT This user is from outside of this forum
        trwnh@mastodon.social
        wrote on last edited by
        #3

        @julian context can be an array but generally isn't expected to be. posts aren't usually part of multiple threads. it sounds like your concern is mostly in establishing equivalence between contexts? at least that's what it sounds like with the talk about "my own local context". it doesn't particularly matter if the context is local or remote.

        trwnh@mastodon.socialT 1 Reply Last reply
        0
        • trwnh@mastodon.socialT trwnh@mastodon.social

          @julian context can be an array but generally isn't expected to be. posts aren't usually part of multiple threads. it sounds like your concern is mostly in establishing equivalence between contexts? at least that's what it sounds like with the talk about "my own local context". it doesn't particularly matter if the context is local or remote.

          trwnh@mastodon.socialT This user is from outside of this forum
          trwnh@mastodon.socialT This user is from outside of this forum
          trwnh@mastodon.social
          wrote on last edited by
          #4

          @julian to clarify: this is mostly about "canonical" identifiers vs. aliases. there is generally one canonical identifier for the conversation collection, and this is what should be used as the value of `context`. this could get a bit complicated but there are potential ways to coordinate replication between equivalent conversation collections, probably involving mutual following/follower relationship, plus some indicator of aliases like `alsoKnownAs` or some other extension property.

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


          • Login

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