Content on threads that are awaiting moderation should not be indexed by search engines. Return a 404 status code but allow administrators to moderate the content.
checking self.thread.num_replies seems to work well if a comment is deleted or flagged as spam. However it didn't work for me when the comment was still pending. I did this: allow *anonymous to POST, then as anonymous I created a new topic, then that page had status 200 but we'd want 404 then too
forgediscussion.tests.functional.test_forum.TestForum.test_anonymous_post needs to be updated to expect status 404. Maybe other tests too, after the above change
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
self.thread.num_replies
seems to work well if a comment is deleted or flagged as spam. However it didn't work for me when the comment was still pending. I did this: allow *anonymous to POST, then as anonymous I created a new topic, then that page had status 200 but we'd want 404 then tooforgediscussion.tests.functional.test_forum.TestForum.test_anonymous_post
needs to be updated to expect status 404. Maybe other tests too, after the above change