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

guardrails for posts with pending spam flags #1520

Merged
merged 3 commits into from
Jan 26, 2025

Conversation

cellio
Copy link
Member

@cellio cellio commented Jan 20, 2025

If a post has pending spam flags, warn logged-in users and suppress links for anonymous users. There are currently no exceptions for the status of the target user; should there be? (Does this allow someone to harass curators by decorating their posts with warnings until the flags get declined?)

Fixes #1381.

@cellio cellio requested a review from a team January 20, 2025 23:55
@cellio
Copy link
Member Author

cellio commented Jan 20, 2025

I am aware that this adds to the code that depends on a name that came from a YAML (configuration) file, which is inherently a little fragile. If system code depends on a specific flag type, it would be better to bake that in. But reseeding that in prod now also seems a little scary, so since this is not the first case of this (we were already doing that), I don't want to try to do that as part of this PR.

@cellio cellio force-pushed the cellio/1381-nerf-spam-posts branch from b0b1553 to 1e1bbea Compare January 21, 2025 18:46
@cellio
Copy link
Member Author

cellio commented Jan 21, 2025

The test failure is the intermittent SSL one. Rerunning via force-push didn't fix it, but I don't know what I need to do now.

@cellio cellio force-pushed the cellio/1381-nerf-spam-posts branch from 1e1bbea to aaf0d64 Compare January 21, 2025 19:08
@ArtOfCode- ArtOfCode- merged commit fb06d81 into develop Jan 26, 2025
7 checks passed
@ArtOfCode- ArtOfCode- deleted the cellio/1381-nerf-spam-posts branch January 26, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nerf posts that have been flagged as spam
2 participants