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. Fediverse
  3. ActivityPub
  4. @JollyRoberts How could you describe a relationship between a Feed and its owner?

@JollyRoberts How could you describe a relationship between a Feed and its owner?

Scheduled Pinned Locked Moved ActivityPub
3 Posts 2 Posters 27 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.
  • 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
    #1

    @JollyRoberts How could you describe a relationship between a Feed and its owner? In Fediverse, attributedTo is often used to specify an actor that created the object. If your use case is different, a new property may be preferable.

    @protocol

    jollyroberts@socialhub.activitypub.rocksJ 1 Reply Last reply
    0
    • silverpill@mitra.socialS silverpill@mitra.social

      @JollyRoberts How could you describe a relationship between a Feed and its owner? In Fediverse, attributedTo is often used to specify an actor that created the object. If your use case is different, a new property may be preferable.

      @protocol

      jollyroberts@socialhub.activitypub.rocksJ This user is from outside of this forum
      jollyroberts@socialhub.activitypub.rocksJ This user is from outside of this forum
      jollyroberts@socialhub.activitypub.rocks
      wrote on last edited by
      #2

      So at the moment we have the human who makes the feed as the only item in the attributedTo property.

      Example feed on piefed.social:

      { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "attributedTo": "https://piefed.social/f/fediverse/moderators", "endpoints": { "sharedInbox": "https://piefed.social/inbox" }, "followers": "https://piefed.social/f/fediverse/followers", "following": "https://piefed.social/f/fediverse/following", "id": "https://piefed.social/f/fediverse", "inbox": "https://piefed.social/f/fediverse/inbox", "moderators": "https://piefed.social/f/fediverse/moderators", "name": "Fediverse", "outbox": "https://piefed.social/f/fediverse/outbox", "preferredUsername": "fediverse", "publicKey": { "id": "https://piefed.social/f/fediverse#main-key", "owner": "https://piefed.social/f/fediverse", "publicKeyPem": "-----BEGIN PUBLIC KEY-----.....-----END PUBLIC KEY-----\n" }, "published": "2025-02-26T23:19:40.672055+00:00", "sensitive": false, "type": "Feed", "updated": "2025-02-26T23:19:40.672058+00:00", "url": "https://piefed.social/f/fediverse"}

      attributedTo points to /moderators:

      { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "id": "https://piefed.social/f/fediverse/moderators", "orderedItems": [ "https://piefed.social/u/rimu" ], "totalItems": 1, "type": "OrderedCollection"}

      At this moment we also have the moderators property, but as I have found out in this thread thats not a real property in AP as yet, so I'll adjust the code to not use that in the future.

      We made the /moderators be a collection to give us some future proofing. Ie right now one person can own a given feed. But if we want to add the ability to have more than one person moderate a feed in the future its easier if this starts life as some kind of collection, so we can just add items to it if we want in the future.

      silverpill@mitra.socialS 1 Reply Last reply
      0
      • jollyroberts@socialhub.activitypub.rocksJ jollyroberts@socialhub.activitypub.rocks

        So at the moment we have the human who makes the feed as the only item in the attributedTo property.

        Example feed on piefed.social:

        { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "attributedTo": "https://piefed.social/f/fediverse/moderators", "endpoints": { "sharedInbox": "https://piefed.social/inbox" }, "followers": "https://piefed.social/f/fediverse/followers", "following": "https://piefed.social/f/fediverse/following", "id": "https://piefed.social/f/fediverse", "inbox": "https://piefed.social/f/fediverse/inbox", "moderators": "https://piefed.social/f/fediverse/moderators", "name": "Fediverse", "outbox": "https://piefed.social/f/fediverse/outbox", "preferredUsername": "fediverse", "publicKey": { "id": "https://piefed.social/f/fediverse#main-key", "owner": "https://piefed.social/f/fediverse", "publicKeyPem": "-----BEGIN PUBLIC KEY-----.....-----END PUBLIC KEY-----\n" }, "published": "2025-02-26T23:19:40.672055+00:00", "sensitive": false, "type": "Feed", "updated": "2025-02-26T23:19:40.672058+00:00", "url": "https://piefed.social/f/fediverse"}

        attributedTo points to /moderators:

        { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "id": "https://piefed.social/f/fediverse/moderators", "orderedItems": [ "https://piefed.social/u/rimu" ], "totalItems": 1, "type": "OrderedCollection"}

        At this moment we also have the moderators property, but as I have found out in this thread thats not a real property in AP as yet, so I'll adjust the code to not use that in the future.

        We made the /moderators be a collection to give us some future proofing. Ie right now one person can own a given feed. But if we want to add the ability to have more than one person moderate a feed in the future its easier if this starts life as some kind of collection, so we can just add items to it if we want in the future.

        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
        #3

        @JollyRoberts You can define a new property in https://w3id.org/fep namespace (see FEP-888d), along with the Feed type.
        I think this is better than attributing actor to a collection, which is very unusual (though I don't expect that to cause any interop issues). Another option is to use an array value for attributedTo, this is also uncommon but some implementations do this (If I remember correctly, PeerTube is one of them).

        @protocol

        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