mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 21:57:03 +00:00
feat(chat): don't check for slurs in private chats
This commit is contained in:
parent
ac972fb481
commit
219bdc088b
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue