Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • 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
Kollaps
FARVEL BIG TECH
  1. Forside
  2. ActivityPub
  3. Automatic category/community assignment on received object

Automatic category/community assignment on received object

Planlagt Fastgjort Låst Flyttet ActivityPub
activitypubthreadiverse
9 Indlæg 3 Posters 19 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • 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 sidst redigeret af
    #1

    I’m wondering how content on threadiverse is automatically assigned its community when received by the software (e.g. PieFed, Lemmy, Mbin).

    The answer I am expecting is “if the community is addressed (to, cc, audience), then it is slotted into that community”.

    However that causes issues for compatibility with microblogs… for example, silverpill@mitra.social recently authored a post that mentioned [swf@socialwebfoundation.org](https://community.nodebb.org/category/swf@socialwebfoundation.org) and it got slotted into that community on NodeBB, which isn’t correct since that group is private.

    Better practice would be to only trust the addressed community if it is Announce’d by the community directly, but would fall short if my instance does not receive the Announce (say, if nobody follows the community), in which case we’d fall back to “uncategorized”, which is where all microblog posts currently go. Then it’s neither correct nor incorrect, I suppose.

    I think this might be an issue where NodeBB tries to be too many things at once (microblog and threadiverse compatible).

    1 Reply Last reply
    1
    2
    • System shared this topic on
    • 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 sidst redigeret af
      #2

      I think it's important to get an Announce, because the actor who addressed the community might be blocked by that community, or might not be a member of it (if the community is private).
      You can try to retrieve the outbox of the addressed community to verify that a post was actually Announce'd

      @activitypub

      julian@community.nodebb.orgJ 1 Reply Last reply
      0
      • silverpill@mitra.socialS silverpill@mitra.social

        I think it's important to get an Announce, because the actor who addressed the community might be blocked by that community, or might not be a member of it (if the community is private).
        You can try to retrieve the outbox of the addressed community to verify that a post was actually Announce'd

        @activitypub

        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 sidst redigeret af
        #3

        silverpill@mitra.social I thought about checking against the outbox, but there’s a potential race condition that could occur if I receive the Create(Note) at roughly the same time as the community, but the community hasn’t processed the activity yet. In that scenario, the activity would not be in the outbox for checking.

        The same thing would happen if there was some out-of-band check for object membership in a collection (not that there is one right now).

        1 Reply Last reply
        1
        • System shared this topic on
        • projectmoon@forum.agnos.isP This user is from outside of this forum
          projectmoon@forum.agnos.isP This user is from outside of this forum
          projectmoon@forum.agnos.is
          wrote on sidst redigeret af
          #4

          I still think it would be good to update the synchronization function in admin settings to automatically slot any synced community/category into the local category, even if the sync only goes one way (e.g. with Lemmy not being able to remote follow category actors).

          1 Reply Last reply
          1
          0
          • System shared this topic on
          • 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 sidst redigeret af
            #5

            projectmoon@forum.agnos.is it’ll work better once cross-posting is built into NodeBB I think 😄

            1 Reply Last reply
            0
            • 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 sidst redigeret af
              #6

              @julian Does NodeBB support creating new topics by mentioning a group/category?

              I wonder how context should be assigned in this case.

              julian@community.nodebb.orgJ 1 Reply Last reply
              0
              • silverpill@mitra.socialS silverpill@mitra.social

                @julian Does NodeBB support creating new topics by mentioning a group/category?

                I wonder how context should be assigned in this case.

                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 sidst redigeret af
                #7

                silverpill@mitra.social yes, it should. Mentioning the category means it will be addressed and NodeBB will slot the received content in the first group object it finds.

                1 Reply Last reply
                0
                • 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 sidst redigeret af
                  #8

                  If I create a topic this way, I will be the owner of the context collection. But if the conversation is to be moderated, it should be owned by the group.

                  Am I correct?

                  (there is a parallel discussion happening at https://codeberg.org/streams/streams/issues/229)

                  julian@community.nodebb.orgJ 1 Reply Last reply
                  0
                  • silverpill@mitra.socialS silverpill@mitra.social

                    If I create a topic this way, I will be the owner of the context collection. But if the conversation is to be moderated, it should be owned by the group.

                    Am I correct?

                    (there is a parallel discussion happening at https://codeberg.org/streams/streams/issues/229)

                    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 sidst redigeret af
                    #9

                    I suppose you’re right in a way. The context owner is not supposed to be set by someone other than the context owner. It’s a fallback mechanism intended for better compatibility with Mastodon.

                    When a group is addressed and it is one of the local NodeBB categories, it will assume control

                    If it is another group that it knows about but isn’t same origin to the author, then no category is assumed.

                    1 Reply Last reply
                    0
                    Svar
                    • Svar som emne
                    Login for at svare
                    • Ældste til nyeste
                    • Nyeste til ældste
                    • Most Votes


                    • Log ind

                    • Har du ikke en konto? Tilmeld

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    Graciously hosted by data.coop
                    • First post
                      Last post
                    0
                    • Hjem
                    • Seneste
                    • Etiketter
                    • Populære
                    • Verden
                    • Bruger
                    • Grupper