I don’t have a clear idea of how to fix this one. It’s trivial to stop the emails from going out, but then how do you send it ones the status changes? Also, swapping statuses could send the same message multiple times. The database needs to track whether the comment has been sent out as an email or not. The email sending can’t take place in WriteComments. It should probably be async from the posting request anyway.
I don’t have a clear idea of how to fix this one. It’s trivial to stop the emails from going out, but then how do you send it ones the status changes? Also, swapping statuses could send the same message multiple times. The database needs to track whether the comment has been sent out as an email or not. The email sending can’t take place in WriteComments. It should probably be async from the posting request anyway.