What is Nostr?
julian /
npub16lu…09mm
2025-01-09 16:44:34

julian on Nostr: @pfefferle@mastodon.social Thought you might be interested... I attempted to follow ...

@pfefferle@mastodon.social Thought you might be interested... I attempted to follow @evanprodromou@socialwebfoundation.org 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.
Author Public Key
npub16lufy7a3rplgl0xsea9ga22d968ynrk0egajcnec8y4x4nzed8tsfz09mm