this post was submitted on 09 Jan 2025
0 points (NaN% liked)

ActivityPub

0 readers
1 users here now

Focused discussion related to ActivityPub integration in NodeBB

founded 7 months ago
 

@[email protected] Thought you might be interested... I attempted to follow @[email protected] from NodeBB and found a fun little race condition!

NodeBB sends the follow and waits for the request to complete before recording the details of the follow (for backreferencing the eventual accept). WordPress seems to fire back the Accept, and then wraps up the response.

I imagine a lot of implementors do the same, but it just so happens that WordPress' response time (or at least the swf site's) is juuust slow enough to reliably have the Accept come in before the Follow finishes.

So NodeBB hadn't recorded the follow request when it received the Accept, so the follow failed :laughing:

I've adjusted my code now so the backreference is saved before sending the Follow.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here