Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Block submission or edits of comments containing profanity #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Block submission or edits of comments containing profanity #4

wants to merge 2 commits into from

Conversation

salsa-nathan
Copy link
Contributor

Purpose

This pull request adds functionality to block submission or edits of comments containing profanity.

Approach

The Python profanityfilter library is used to validate comment submissions and edits against a list of bad words.
If a user submits a comment, or edits a comment to contain profanity in the subject or comment text, its is blocked and an error message appears.

image

- Adjust `controller.py` to redirect based on outcome and comment type
- Adjust `create.py` and `update.py` actions to implement profanity filter (if enabled in CKAN config)
- Add additional mark-up, ids and classes to `comment_list.html` template to allow jumping to anchors within page
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant