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-6713 Enable comment moderation for admin posts #4790

Merged
merged 21 commits into from
May 19, 2024

Conversation

sarken
Copy link
Member

@sarken sarken commented Apr 15, 2024

Issue

https://otwarchive.atlassian.net/browse/AO3-6713

Purpose

Adds comment moderation for admin posts.

Dreadfully sorry about not having the issue number in any of the commits; I merged with master before I thought to fix it. At least we squash now?

Testing Instructions

Refer to Jira.

Credit

Sarken, she/her

@sarken sarken added Has Migrations Contains migrations and therefore needs special attention when deploying Awaiting Review labels Apr 15, 2024
Comment on lines -371 to -375
else
# this shouldn't come up any more
flash[:comment_notice] = ts("Sorry, but this comment looks like spam to us.")
redirect_back_or_default(root_path)
Copy link
Member Author

Choose a reason for hiding this comment

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

I took this out (as well as the initial @comment.approved? check) because Reviewdog was really unhappy with the nesting here, and it had me making so many changes to this action that, hey, what's another one. We're just going to assume that if a comment is saved, it passed the spam check.

@brianjaustin brianjaustin self-requested a review April 17, 2024 15:32
config/locales/views/en.yml Outdated Show resolved Hide resolved
app/views/admin_posts/show.html.erb Show resolved Hide resolved
app/controllers/comments_controller.rb Outdated Show resolved Hide resolved
@brianjaustin brianjaustin merged commit 47cc038 into otwcode:master May 19, 2024
26 checks passed
@sarken sarken deleted the AO3-6713 branch May 22, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Has Migrations Contains migrations and therefore needs special attention when deploying Reviewed: Ready to Merge
Projects
None yet
2 participants