mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-26 07:19:23 +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 { ConversationsHelper } from "../helpers/ConversationsHelper";
|
||||||
import { Conversation, BaseConversation } from "../entities/Conversation";
|
import { Conversation, BaseConversation } from "../entities/Conversation";
|
||||||
import { UserHelper } from "../helpers/UserHelper";
|
import { UserHelper } from "../helpers/UserHelper";
|
||||||
|
import { removeHTMLNodes } from "../utils/StringUtils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Conversations controller
|
* Conversations controller
|
||||||
@ -33,7 +34,7 @@ export class ConversationsController {
|
|||||||
|
|
||||||
const conv : BaseConversation = {
|
const conv : BaseConversation = {
|
||||||
ownerID: h.getUserId(),
|
ownerID: h.getUserId(),
|
||||||
name: name == "false" ? "" : name,
|
name: name == "false" ? "" : removeHTMLNodes(name),
|
||||||
following: h.postBool("follow"),
|
following: h.postBool("follow"),
|
||||||
members: members,
|
members: members,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user