Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. Those familiar with activitypub know what I should be doing with mastodon sending several unfollow commands?

Those familiar with activitypub know what I should be doing with mastodon sending several unfollow commands?

Pianificato Fissato Bloccato Spostato Senza categoria
activitypubfediverse
4 Post 2 Autori 3 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Le Perttiundefined Questo utente è esterno a questo forum
    Le Perttiundefined Questo utente è esterno a questo forum
    Le Pertti
    scritto su ultima modifica di
    #1

    Those familiar with activitypub know what I should be doing with mastodon sending several unfollow commands? On my end I handle the first command but it keeps sending those, it becomes a problem if I follow again, it handles that also correctly, but unfollow commands keep coming which undos the follow command. #activitypub #fediverse

    julianundefined 1 Risposta Ultima Risposta
    • Le Perttiundefined Le Pertti

      Those familiar with activitypub know what I should be doing with mastodon sending several unfollow commands? On my end I handle the first command but it keeps sending those, it becomes a problem if I follow again, it handles that also correctly, but unfollow commands keep coming which undos the follow command. #activitypub #fediverse

      julianundefined Questo utente è esterno a questo forum
      julianundefined Questo utente è esterno a questo forum
      julian
      scritto su ultima modifica di
      #2

      lepertti@mastodon.gamedev.place sure.

      Every ActivityPub activity contains an ID. It's a requirement.

      Simply discard the unfollows you've seen before.

      If you want to be very strict about it, you could record the follow id, and only process the unfollow if the object id matches.

      1 Risposta Ultima Risposta
      • Le Perttiundefined Questo utente è esterno a questo forum
        Le Perttiundefined Questo utente è esterno a questo forum
        Le Pertti
        scritto su ultima modifica di
        #3

        @julian Oh yeah that makes sense to look for! I need to rework my systems a little bit but if I start keeping track of IDs then it should make things little more robust. I do that already for comments, likes and boosts.

        julianundefined 1 Risposta Ultima Risposta
        • Le Perttiundefined Le Pertti

          @julian Oh yeah that makes sense to look for! I need to rework my systems a little bit but if I start keeping track of IDs then it should make things little more robust. I do that already for comments, likes and boosts.

          julianundefined Questo utente è esterno a questo forum
          julianundefined Questo utente è esterno a questo forum
          julian
          scritto su ultima modifica di
          #4

          lepertti@mastodon.gamedev.place you don't have to associate unfollows with the original follow. Some software do, some don't and just rely on the actor sent in the object.

          Being very strict about it makes it harder to implement and test 😅

          It's up to you.

          1 Risposta Ultima Risposta
          Rispondi
          • Topic risposta
          Effettua l'accesso per rispondere
          • Da Vecchi a Nuovi
          • Da Nuovi a Vecchi
          • Più Voti


          • Accedi

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