mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
chore(words): reclassify some words as slurs
Also moves bannedSlurs.js to the same directory as bannedWords.js.
This commit is contained in:
@@ -15,7 +15,7 @@ import nconf from 'nconf';
|
|||||||
import Bluebird from 'bluebird';
|
import Bluebird from 'bluebird';
|
||||||
import bannedWords from '../../libs/bannedWords';
|
import bannedWords from '../../libs/bannedWords';
|
||||||
import { TAVERN_ID } from '../../models/group';
|
import { TAVERN_ID } from '../../models/group';
|
||||||
import bannedSlurs from '../../bannedSlurs';
|
import bannedSlurs from '../../libs/bannedSlurs';
|
||||||
|
|
||||||
const FLAG_REPORT_EMAILS = nconf.get('FLAG_REPORT_EMAIL').split(',').map((email) => {
|
const FLAG_REPORT_EMAILS = nconf.get('FLAG_REPORT_EMAIL').split(',').map((email) => {
|
||||||
return { email, canSend: true };
|
return { email, canSend: true };
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable no-multiple-empty-lines */
|
/* eslint-disable no-multiple-empty-lines */
|
||||||
|
|
||||||
// CONTENT WARNING:
|
// CONTENT WARNING:
|
||||||
// This file contains slurs, swear words, religious oaths, and words related to addictive substance and adult topics.
|
// This file contains slurs on race, gender, sexual orientation, etc.
|
||||||
// Do not read this file if you do not want to be exposed to those words.
|
// Do not read this file if you do not want to be exposed to those words.
|
||||||
// The words are stored in an array called `bannedSlurs` which is then exported with `module.exports = bannedSlurs;`
|
// The words are stored in an array called `bannedSlurs` which is then exported with `module.exports = bannedSlurs;`
|
||||||
// This file does not contain any other code.
|
// This file does not contain any other code.
|
||||||
@@ -51,6 +51,37 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
let bannedSlurs = ['TEST_PLACEHOLDER_SLUR_WORD_HERE'];
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
let bannedSlurs = [
|
||||||
|
'TEST_PLACEHOLDER_SLUR_WORD_HERE',
|
||||||
|
|
||||||
|
'nigger',
|
||||||
|
'niggers',
|
||||||
|
'nigga',
|
||||||
|
'niggas',
|
||||||
|
'fag',
|
||||||
|
'fags',
|
||||||
|
'faggot',
|
||||||
|
'faggots',
|
||||||
|
'whore',
|
||||||
|
'whores',
|
||||||
|
'slut',
|
||||||
|
'sluts',
|
||||||
|
'cunt',
|
||||||
|
'cunts',
|
||||||
|
'spic',
|
||||||
|
'spics',
|
||||||
|
'tranny',
|
||||||
|
'trannies',
|
||||||
|
'tard',
|
||||||
|
'tards',
|
||||||
|
];
|
||||||
|
|
||||||
module.exports = bannedSlurs;
|
module.exports = bannedSlurs;
|
||||||
@@ -116,26 +116,6 @@ let bannedWords = [
|
|||||||
'bitching',
|
'bitching',
|
||||||
'b\\*tch',
|
'b\\*tch',
|
||||||
|
|
||||||
'nigger',
|
|
||||||
'niggers',
|
|
||||||
'nigga',
|
|
||||||
'niggas',
|
|
||||||
'fag',
|
|
||||||
'fags',
|
|
||||||
'faggot',
|
|
||||||
'faggots',
|
|
||||||
'whore',
|
|
||||||
'whores',
|
|
||||||
'slut',
|
|
||||||
'sluts',
|
|
||||||
'cunt',
|
|
||||||
'cunts',
|
|
||||||
'spic',
|
|
||||||
'spics',
|
|
||||||
'tranny',
|
|
||||||
'trannies',
|
|
||||||
'tard',
|
|
||||||
'tards',
|
|
||||||
'retard',
|
'retard',
|
||||||
'retards',
|
'retards',
|
||||||
'bastard',
|
'bastard',
|
||||||
|
|||||||
Reference in New Issue
Block a user