mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
WIP(chat): first pass deprecation
This commit is contained in:
@@ -130,6 +130,10 @@ api.postChat = {
|
||||
|
||||
const group = await Group.getGroup({ user, groupId });
|
||||
|
||||
if (group.type !== 'party' && !(group.purchased && group.purchased.plan.customerId)) {
|
||||
throw new BadRequest(res.t('featureRetired'));
|
||||
}
|
||||
|
||||
// Check message for banned slurs
|
||||
if (group && group.privacy !== 'private' && textContainsBannedSlur(req.body.message)) {
|
||||
const { message } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user