mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Satinize conversations names
This commit is contained in:
parent
4406b8c882
commit
bd7da591d7
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user