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