Fix message formatting.
This commit is contained in:
parent
244e8258fd
commit
45cc83d048
@ -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';
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user