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. Signifying an audience in an object (PieFed/Lemmy)

Signifying an audience in an object (PieFed/Lemmy)

Scheduled Pinned Locked Moved ActivityPub
activitypubaudience1b12lemmypiefed
9 Posts 4 Posters 53 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

    Hi @andrew_s@piefed.social/@freamon and @nutomic@lemmy.ml โ€”I'm working (not-so-secretly) on refactoring NodeBB so that it is able to "browse" remote audiences/group actors, and that would include things like PieFed and Lemmy communities.

    N.B. Given varied nomenclature (group/category/community/subforum), the ForumWG calls this structure an "audience".

    Where I am at now is working through the logic for slotting an object into a category.

    The most obvious choice here would be to look at as:audience. It's even specified in 1b12, and the majority of threaded implementations follow 1b12.

    I am making this post because nutomic explicitly removed the audience from being served in Lemmy (as of January this year), so I don't think relying on that property would be wise.

    I asked in that issue whether Lemmy finds community via to/cc (it does). Does PieFed do the same?

    Would this also open up the possibility of a topic/context being part of multiple audiences/communities? Interesting...

    1 Reply Last reply
    0
    • bentigorlich@gehirneimer.deB This user is from outside of this forum
      bentigorlich@gehirneimer.deB This user is from outside of this forum
      bentigorlich@gehirneimer.de
      wrote on last edited by
      #2

      @julian@community.nodebb.org Interesting, I though that the audience field was the way it should be done and to/cc fields were just for backwards compat ๐Ÿ˜„

      1 Reply Last reply
      0
      • bentigorlich@gehirneimer.deB This user is from outside of this forum
        bentigorlich@gehirneimer.deB This user is from outside of this forum
        bentigorlich@gehirneimer.de
        wrote on last edited by
        #3

        @julian@community.nodebb.org Mbin uses all 3 fields for what its worth ๐Ÿ˜„

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • bentigorlich@gehirneimer.deB bentigorlich@gehirneimer.de

          @julian@community.nodebb.org Mbin uses all 3 fields for what its worth ๐Ÿ˜„

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

          @bentigorlich@gehirneimer.de ah that's good to know.

          Perhaps the solution is to use audience if explicitly defined, then fall back to to/cc otherwise.

          1 Reply Last reply
          0
          • bentigorlich@gehirneimer.deB This user is from outside of this forum
            bentigorlich@gehirneimer.deB This user is from outside of this forum
            bentigorlich@gehirneimer.de
            wrote on last edited by
            #5

            @julian@community.nodebb.org right now we just collect all links in these 3 fields and select the first magazine/community/group from the db having this url as their public url

            julian@community.nodebb.orgJ 1 Reply Last reply
            0
            • bentigorlich@gehirneimer.deB bentigorlich@gehirneimer.de

              @julian@community.nodebb.org right now we just collect all links in these 3 fields and select the first magazine/community/group from the db having this url as their public url

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

              @bentigorlich@gehirneimer.de okay ๐Ÿ‘

              Apologies for not mentioning you up top. I did not know you were the maintainer for mbin, but now I do! ๐Ÿ˜„

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

                @julian @andrew_s @nutomic being part of multiple audiences has always been possible, it's just rejected by overly strict implementers or unhandled by naive ones

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

                  @julian @andrew_s @nutomic being part of multiple audiences has always been possible, it's just rejected by overly strict implementers or unhandled by naive ones

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

                  @julian @andrew_s @nutomic btw there's a reason that section of as2-vocab is called "context and audience"... they are sister properties. one scopes by purpose of when it should be seen, the other by intent of who should see it. (this is also why the rationale for fep-7888 uses the phrase "purpose and intent" when talking about why not use a tag)

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    Guest
                    wrote on last edited by
                    #9

                    I asked in that issue whether Lemmy finds community via to/cc (it does). Does PieFed do the same?

                    Yes - PieFed does the same. It looks in 'audience', then 'cc', then 'to'. It has to, to support all the platforms that haven't adopted 'audience. It's a convenient field, but PieFed won't be affected if Lemmy goes through with removing it.

                    Would this also open up the possibility of a topic/context being part of multiple audiences/communities?

                    Not at present. If you do something like cc: [community1, community2] it will only go to community1 (on both Lemmy and PieFed). There's so many activities that are effectively duplicates, both in normal operation and when platforms are bugged (both Lemmy and Mastodon have gone through phases of sending the same activity multiple times), that you need a way to make sure you're only processing one. On PieFed, this is done by having a UNIQUE constraint of the 'ap_id' column of the Post table (the ap_id of your post is https://community.nodebb.org/post/103806), so it means you can't have the same post in more than one community.

                    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