1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Satinize conversations names

This commit is contained in:
Pierre HUBERT 2019-11-30 14:03:53 +01:00
parent 4406b8c882
commit bd7da591d7

View File

@ -2,6 +2,7 @@ import { RequestHandler } from "../entities/RequestHandler";
import { ConversationsHelper } from "../helpers/ConversationsHelper";
import { Conversation, BaseConversation } from "../entities/Conversation";
import { UserHelper } from "../helpers/UserHelper";
import { removeHTMLNodes } from "../utils/StringUtils";
/**
* Conversations controller
@ -33,7 +34,7 @@ export class ConversationsController {
const conv : BaseConversation = {
ownerID: h.getUserId(),
name: name == "false" ? "" : name,
name: name == "false" ? "" : removeHTMLNodes(name),
following: h.postBool("follow"),
members: members,
}