generated from lucien/api-template
add: improved the frontend and the backend by adding websockets
This commit is contained in:
parent
ecf7b61aca
commit
fbf7821320
18 changed files with 255 additions and 65 deletions
|
@ -19,6 +19,8 @@ export default function MessageComponent({ message, user, channel, deleteMessage
|
|||
if (mention) {
|
||||
return <span><Link key={index} to={`/u/${mention.username}`}>{word}</Link> </span>;
|
||||
}
|
||||
} else if (word.startsWith("https://") || word.startsWith("http://")) {
|
||||
return <span><Link to={word}>{word}</Link> </span>
|
||||
}
|
||||
return <span key={index}>{word} </span>;
|
||||
})}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue