Fix message formatting.

This commit is contained in:
ADAMJR 2023-01-03 14:23:01 +00:00
parent 244e8258fd
commit 45cc83d048
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
import { Socket } from 'socket.io';
import { WebSocket } from '../websocket';
import { WSEvent, } from './ws-event';
import { Channel } from '../../data/models/channel';
import striptags from 'striptags';
import { WS } from '@acrd/types';
import ProfanityFilter from 'bad-words';

View File

@ -17,7 +17,7 @@ const MessageContent: FunctionComponent<MessageContentProps> = ({ message }) =>
const messageHTML =
((message.content)
? striptags(format(message.content), 'a')
? format(striptags(message.content))
: ''
) + ((message.updatedAt && message.content)
? `<span