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. I have a question about the `liked` collection in the #ActivityPub specification.

I have a question about the `liked` collection in the #ActivityPub specification.

Scheduled Pinned Locked Moved AP Test (community.nodebb.org)
activitypubfedidev
7 Posts 4 Posters 39 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.
  • hongminhee@fosstodon.orgH This user is from outside of this forum
    hongminhee@fosstodon.orgH This user is from outside of this forum
    hongminhee@fosstodon.org
    wrote on last edited by
    #1

    I have a question about the `liked` collection in the #ActivityPub specification. According to section 5.5, the liked collection is “a list of every object from all of the actor's `Like` activities”, whereas the side note in section 5.7 says it is “a collection of `Like` activities performed by the actor”. What is the element type of the liked collection, `Object` or `Like`?

    • Section 5.5: https://www.w3.org/TR/activitypub/#liked
    • Section 5.7: https://www.w3.org/TR/activitypub/#likes

    #fedidev

    julian@community.nodebb.orgJ mariusor@metalhead.clubM 2 Replies Last reply
    0
    • hongminhee@fosstodon.orgH hongminhee@fosstodon.org

      I have a question about the `liked` collection in the #ActivityPub specification. According to section 5.5, the liked collection is “a list of every object from all of the actor's `Like` activities”, whereas the side note in section 5.7 says it is “a collection of `Like` activities performed by the actor”. What is the element type of the liked collection, `Object` or `Like`?

      • Section 5.5: https://www.w3.org/TR/activitypub/#liked
      • Section 5.7: https://www.w3.org/TR/activitypub/#likes

      #fedidev

      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

      @hongminhee@fosstodon.org nice catch!

      @evan@cosocial.ca and the rest of the SocialCG touched on this issue just last month and it's on its way to being fixed in due course!

      https://github.com/w3c/activitypub/issues/317

      Link Preview Image
      Spec contradicts itself when describing what the `liked` collection should contain · Issue #317 · w3c/activitypub

      Thanks to @tuxether for being inquisitive which led me to this. §5.5 Liked states: Every actor MAY have a liked collection. This is a list of every object from all of the actor's Like activities, added as a side effect. §5.7 Likes has a ...

      favicon

      GitHub (github.com)

      1 Reply Last reply
      0
      • 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
        #3

        @hongminhee@fosstodon.org the proposed amended text is as follows:

        liked: Specifically a property of actors. This is a collection of objects liked by the actor, added to the collection as a side effect of delivery to the outbox.

        1 Reply Last reply
        0
        • hongminhee@fosstodon.orgH This user is from outside of this forum
          hongminhee@fosstodon.orgH This user is from outside of this forum
          hongminhee@fosstodon.org
          wrote on last edited by
          #4

          @julian Good to know, thank you!

          1 Reply Last reply
          0
          • hongminhee@fosstodon.orgH hongminhee@fosstodon.org

            I have a question about the `liked` collection in the #ActivityPub specification. According to section 5.5, the liked collection is “a list of every object from all of the actor's `Like` activities”, whereas the side note in section 5.7 says it is “a collection of `Like` activities performed by the actor”. What is the element type of the liked collection, `Object` or `Like`?

            • Section 5.5: https://www.w3.org/TR/activitypub/#liked
            • Section 5.7: https://www.w3.org/TR/activitypub/#likes

            #fedidev

            mariusor@metalhead.clubM This user is from outside of this forum
            mariusor@metalhead.clubM This user is from outside of this forum
            mariusor@metalhead.club
            wrote on last edited by
            #5

            @hongminhee they are distinct collections:

            * **Liked** belongs to actors: contains the objects that they have liked

            * **Likes** belongs to any type of object: contains Like activities from other actors having current object as an object

            unexpectedteapot@social.linux.pizzaU 1 Reply Last reply
            0
            • mariusor@metalhead.clubM mariusor@metalhead.club

              @hongminhee they are distinct collections:

              * **Liked** belongs to actors: contains the objects that they have liked

              * **Likes** belongs to any type of object: contains Like activities from other actors having current object as an object

              unexpectedteapot@social.linux.pizzaU This user is from outside of this forum
              unexpectedteapot@social.linux.pizzaU This user is from outside of this forum
              unexpectedteapot@social.linux.pizza
              wrote on last edited by
              #6

              @mariusor @hongminhee I think the confusion is whether Liked should contain Like(Object) the activity container or Object itself. In the definition it says objects, but in the note (second link) it says activities.

              mariusor@metalhead.clubM 1 Reply Last reply
              0
              • unexpectedteapot@social.linux.pizzaU unexpectedteapot@social.linux.pizza

                @mariusor @hongminhee I think the confusion is whether Liked should contain Like(Object) the activity container or Object itself. In the definition it says objects, but in the note (second link) it says activities.

                mariusor@metalhead.clubM This user is from outside of this forum
                mariusor@metalhead.clubM This user is from outside of this forum
                mariusor@metalhead.club
                wrote on last edited by
                #7

                @unexpectedteapot Thank you. Indeed I missed that distinction, sorry for the noise @hongminhee. 🙂

                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