Skip to content

Moderation module for comments#59

Open
taitus wants to merge 9364 commits into
masterfrom
feat/dictionary-from-stable-master
Open

Moderation module for comments#59
taitus wants to merge 9364 commits into
masterfrom
feat/dictionary-from-stable-master

Conversation

@taitus

@taitus taitus commented Feb 26, 2020

Copy link
Copy Markdown
Member

Objectives

  • Define a "dictionary" (moderated texts), which builds a dynamic algorithm that detects comments with words considered offensive to the community

  • Hide offensive comments to the public, except under the Comments tab under Users#show, where the comment can be seen along with a Moderated tag

  • The comment's author can edit their offensive comment until no offenses are detected; the recorded offense is also removed from the backend so that no action can be taken upon it

  • An admin can "decline" or "confirm" these offenses —the former meaning the moderated comment will be shown again, while the latter hides the comment permanently (shadowban-like behavior)

Visual Changes

Notice when a comment including an offense is created:

Screenshot_20200226_104829

Comments section (with offensive comments) after reload:

Screenshot_20200226_104939

Comments tab under Users#show when a comment is offensive:

Screenshot_2020-02-26 Decide Madrid

View when editing an offensive comment:

Screenshot_2020-02-26 Decide Madrid (2)

Comments tab under Users#show after an offensive comment is corrected:

Screenshot_20200226_110208

Comments tab under Users#show for another user with offensive comments other than the currently logged-in one (this is also what an user would see if the comment is deemed offensive by an admin):

Screenshot_20200226_110423

Admin panel for moderated words:

Screenshot_20200226_104719

Admin panel for moderated words when a word has related offenses:

Screenshot_20200226_105102

Admin panel for actions that can be taken upon offenses:

Screenshot_20200226_105117

Admin panel when offenses have been moderated:

Screenshot_20200226_110705

Comments tab under Users#show when an comment is deemed as non-offensive by an admin:

Screenshot_20200226_110801

Notes

  • This change would only affect comments once merged, and after a "dictionary" is defined; to moderate previous comments, a Rake task would be needed

  • This PR is only aimed at comments, so while some logic from this feature is generic in case is ported somewhere in the future to other resources that are considered moderable, some work (i.e.: define a Moderable concern) is needed to fully abstract said behavior

Loading
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.

7 participants