-
Notifications
You must be signed in to change notification settings - Fork 510
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-6810 Don't send "Automatically flagged as spam" email when hiding works manually #4947
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please action the comments by reviewdog, thank you!
Edit: I removed the rest of my review comments - my alternative approach didn't work, but I think the current approach is also problematic because it's prone to someone forgetting to set the attribute.
Would it help if we put the I thought Speaking of tests, though, I think we should probably also test which emails are sent when using the bulk hiding option on the Moderated Works page. It looks like the current tests only cover the option on the work itself. |
I don't think the I initially chose the approach of a virtual attribute because the alternative of changing the I have changed the virtual attribute to be internal to the model. Instead of setting the attribute, the coder calls the |
ps. I think that test might be flaky |
nevermind it was my fault, fixed it now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple suggestions in addition to the Rubocop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Pull Request Checklist
as the first thing in your pull request title (e.g.
AO3-1234 Fix thing
)until they are reviewed and merged before creating new pull requests.
Issue
https://otwarchive.atlassian.net/browse/AO3-6810
Purpose
When manually hiding a work that has been marked as spam by Akismet or otherwise, don't send the "Automatically flagged as spam" email, send the "Your work has been hidden by the Policy & Abuse team" email.
Testing Instructions
See JIRA ticket.
Credit
EchoEkhi (He/him)