Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • 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

Darkscribes Community

  1. Home
  2. Uncategorized
  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?

Scheduled Pinned Locked Moved Uncategorized
activitypubfediverse
4 Posts 2 Posters 9 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.
  • lepertti@mastodon.gamedev.placeL This user is from outside of this forum
    lepertti@mastodon.gamedev.placeL This user is from outside of this forum
    [email protected]
    wrote last edited by
    #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 [email protected]

      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
      [email protected]
      wrote last edited by
      #2

      [email protected] 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
        [email protected]
        wrote last edited by
        #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 [email protected]

          @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
          [email protected]
          wrote last edited by
          #4

          [email protected] 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
          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
          • Users
          • Groups