mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
feat(chat): don't check for slurs in private chats
This commit is contained in:
@@ -126,7 +126,7 @@ api.postChat = {
|
||||
const group = await Group.getGroup({ user, groupId });
|
||||
|
||||
// Check message for banned slurs
|
||||
if (textContainsBannedSlur(req.body.message)) {
|
||||
if (group.privacy !== 'private' && textContainsBannedSlur(req.body.message)) {
|
||||
const { message } = req.body;
|
||||
user.flags.chatRevoked = true;
|
||||
await user.save();
|
||||
|
||||
Reference in New Issue
Block a user