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. Ikke-kategoriseret
  3. 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?

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
activitypubfediverse
4 Indlæg 2 Posters 0 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.
  • lepertti@mastodon.gamedev.placeL This user is from outside of this forum
    lepertti@mastodon.gamedev.placeL This user is from outside of this forum
    lepertti@mastodon.gamedev.place
    wrote sidst redigeret af
    #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

    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • lepertti@mastodon.gamedev.placeL lepertti@mastodon.gamedev.place

      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

      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
      #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 Reply Last reply
      0
      • lepertti@mastodon.gamedev.placeL This user is from outside of this forum
        lepertti@mastodon.gamedev.placeL This user is from outside of this forum
        lepertti@mastodon.gamedev.place
        wrote sidst redigeret af
        #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.

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • lepertti@mastodon.gamedev.placeL lepertti@mastodon.gamedev.place

          @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.

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