Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not add participation for comment if comment validation failed #6552
Previously the server created a participation for a comment before validating the comment itself. Thus if a client sent an invalid comment to the server (e.g. consists only of spaces) a participation would be created while the comment was refused. This pull request changes the order of the operations so that comment is validated before the participation gets created.
I also noticed that the other social actions had the same odd behavior so i changed them too.