It seems that this code was added specifically to solve the problem you're trying to solve, i.e. to prevent multiple clicks to cause multiple posts. Confused why that didn't work