Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. Topic removal from a category/community

Topic removal from a category/community

Pianificato Fissato Bloccato Spostato Technical Discussion
piefed
29 Post 5 Autori 173 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • silverpill@mitra.social
    silverpill@mitra.social
    silverpill@mitra.social
    scritto su ultima modifica di
    #21

    @julian @rimu No, when one object is embedded in another, it doesn't change its behavior. A Delete activity wrapped in Announce doesn't mean something else, it exists as an independent object that can be fetched by its id.

    The invalid Delete activity worked for Lemmy only because they didn't care about federation with non-forum software. But it can't work in the multi-app network without ugly hacks like checking remote server's NodeInfo.

    julian@activitypub.space 1 Risposta Ultima Risposta
    0
    • silverpill@mitra.social silverpill@mitra.social

      @julian @rimu No, when one object is embedded in another, it doesn't change its behavior. A Delete activity wrapped in Announce doesn't mean something else, it exists as an independent object that can be fetched by its id.

      The invalid Delete activity worked for Lemmy only because they didn't care about federation with non-forum software. But it can't work in the multi-app network without ugly hacks like checking remote server's NodeInfo.

      julian@activitypub.space
      julian@activitypub.space
      julian@activitypub.space
      scritto su ultima modifica di
      #22

      Perhaps resolvable contexts can be a solution for this then.

      I have been implementing topic deletion logic in NodeBB, and while I can send out Announce(Delete(Object)) where Object is the root-level post, it occasionally would send out Deletes where the sender is not the owner of the object. This is the 1b12-speaking logic.

      In 7888-speaking logic, Object would be the local context collection. A receiver would be able to resolve the context URL to the appropriate local representation and delete it as needed. This would also satisfy the "sender needs to own the object" constraint.

      1 Risposta Ultima Risposta
      0
      • julian@activitypub.space
        julian@activitypub.space
        julian@activitypub.space
        scritto su ultima modifica di
        #23

        Hey rimu@piefed.social, I sent over this activity but I wasn't able to make crust delete that representation.

        {
          "id": "https://bb.devnull.land/post/2#activity/announce/delete/1759851369554",
          "type": "Announce",
          "actor": "https://bb.devnull.land/category/2",
          "to": [
            "https://www.w3.org/ns/activitystreams#Public"
          ],
          "cc": [
            "https://bb.devnull.land/category/2/followers"
          ],
          "object": {
            "id": "https://bb.devnull.land/topic/2#activity/delete/1759851369554",
            "type": "Delete",
            "actor": "https://bb.devnull.land/uid/1",
            "to": [
              "https://www.w3.org/ns/activitystreams#Public"
            ],
            "cc": [
              "https://bb.devnull.land/category/2/followers"
            ],
            "origin": "https://bb.devnull.land/category/2",
            "object": "https://bb.devnull.land/post/2"
          }
        }
        

        Am I missing something?

        1 Risposta Ultima Risposta
        0
        • silverpill@mitra.social
          silverpill@mitra.social
          silverpill@mitra.social
          scritto su ultima modifica di
          #24

          @julian

          Delete(Context)? This is very unusual because other collections are not created or deleted, they are server-generated views.

          I assume this problem arises when you create a topic for a remote post? Perhaps deletion of such topics shouldn't be federated?

          Or you can generate

          Announce(Remove(object: root, target: Context))
          

          It would be valid from the authorization point of view.

          julian@community.nodebb.org 1 Risposta Ultima Risposta
          0
          • silverpill@mitra.social silverpill@mitra.social

            @julian

            Delete(Context)? This is very unusual because other collections are not created or deleted, they are server-generated views.

            I assume this problem arises when you create a topic for a remote post? Perhaps deletion of such topics shouldn't be federated?

            Or you can generate

            Announce(Remove(object: root, target: Context))
            

            It would be valid from the authorization point of view.

            julian@community.nodebb.org
            julian@community.nodebb.org
            julian@community.nodebb.org
            scritto su ultima modifica di julian@community.nodebb.org
            #25

            Well, the whole idea behind them being resolvable is so that when they are acted upon (by the context owner), they can be queried.

            For example if I receive a Delete(Context), I'll resolve it to find the root level post, and from there find my local representation, and delete it, assuming the actor was allowed to delete it.

            They're only server generated views per current usage... but why do they have to be constrained to that usage?

            1 Risposta Ultima Risposta
            0
            • julian@activitypub.space
              julian@activitypub.space
              julian@activitypub.space
              scritto su ultima modifica di
              #26

              rimu@piefed.social I think it might have been ignored because I don't serve a moderator collection as per 1b12.

              I'll try to get that set up this week and test again :see_no_evil:

              1 Risposta Ultima Risposta
              0
              • rimu@piefed.social
                rimu@piefed.social
                rimu@piefed.social
                scritto su ultima modifica di
                #27

                Try doing a bare delete (no announce wrapper), with the actor being the moderator who deleted the post.

                https://join-lemmy.org/docs/contributors/05-federation.html#delete-post-or-comment

                julian@activitypub.space 1 Risposta Ultima Risposta
                0
                • rimu@piefed.social rimu@piefed.social

                  Try doing a bare delete (no announce wrapper), with the actor being the moderator who deleted the post.

                  https://join-lemmy.org/docs/contributors/05-federation.html#delete-post-or-comment

                  julian@activitypub.space
                  julian@activitypub.space
                  julian@activitypub.space
                  scritto su ultima modifica di
                  #28

                  Thanks Rimu. Will give this a shot.

                  Upon reflection, since Deletes aren't wrapped in an Announce, then I would recommend that any Move activity we use not be wrapped in Announce either.

                  1 Risposta Ultima Risposta
                  0
                  • rimu@piefed.social
                    rimu@piefed.social
                    rimu@piefed.social
                    scritto su ultima modifica di
                    #29

                    Yes I'm fine with that. It doesn't make much difference in the end.

                    1 Risposta Ultima Risposta
                    0

                    Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                    Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                    Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                    Registrati Accedi
                    Rispondi
                    • Risposta alla discussione
                    Effettua l'accesso per rispondere
                    • Da Vecchi a Nuovi
                    • Da Nuovi a Vecchi
                    • Più Voti


                    • 1
                    • 2
                    Feed RSS
                    Topic removal from a category/community
                    @pierobosio@soc.bosio.info
                    NodeBB Contributors
                    • Accedi

                    • Accedi o registrati per effettuare la ricerca.
                    • Primo post
                      Ultimo post