Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AO3 3543 comment moderation #2169

Merged
merged 4 commits into from Oct 23, 2015

Conversation

shalott
Copy link
Member

@shalott shalott commented Sep 4, 2015

See issue AO3-3543. https://otwarchive.atlassian.net/browse/AO3-3543

Adds very basic moderation to comments. See the issue on JIRA for details.

The basics of comment moderation: turn it on for a work, review comments on a separate page, approve comments.

Signed-off-by: astolat shalott <shalott@gmail.com>
Signed-off-by: astolat shalott <shalott@gmail.com>
Pulled out pry-debugger

Signed-off-by: astolat shalott <shalott@gmail.com>
Signed-off-by: astolat shalott <shalott@gmail.com>
@@ -27,7 +27,7 @@ def count_all_comments
# hidden-by-admin comments.
# returns number of visible (not deleted) comments
def count_visible_comments
self.total_comments.count(:all, :conditions => {:hidden_by_admin => false, :is_deleted => false})
self.total_comments.count(:all, :conditions => {:hidden_by_admin => false, :is_deleted => false, :unreviewed => false})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the new Ruby 1.9 hash syntax.
Redundant self detected.
Space inside { missing.
Space inside } missing.

zz9pzza added a commit that referenced this pull request Oct 23, 2015
@zz9pzza zz9pzza merged commit 7f997ad into otwcode:master Oct 23, 2015
sarken added a commit to sarken/otwarchive that referenced this pull request Oct 28, 2015
…-moderation"

This reverts commit 7f997ad, reversing
changes made to 124708f.
sarken pushed a commit to sarken/otwarchive that referenced this pull request Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants