wordpress-webmention icon indicating copy to clipboard operation
wordpress-webmention copied to clipboard

Race condition causes duplicate comments for same webmention source + target

Open snarfed opened this issue 9 months ago • 1 comments

Hi @pfefferle, @dshanske! I got an interesting one just now: Bridgy Fed sent the same webmention (with same source and target) twice at almost the exact same time, within just ~10ms or so, and the plugin created two duplicate comments for it:

image

Looks like a race condition? I'm guessing you may want to add a lock or database transaction to prevent this.

snarfed avatar May 20 '24 21:05 snarfed