mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Revert "[feature] chat component can now show clickable urls"
This reverts commit 02cbe6c19b4c4d676094f849cd05a740feb2360a.
This commit is contained in:
parent
02cbe6c19b
commit
6acdde177f
@ -315,12 +315,6 @@ export default {
|
||||
this.messagesLoaded = true
|
||||
}
|
||||
this.messagePage += 1
|
||||
|
||||
// hacky way to make urls clickable for the chat component
|
||||
// --> linkify in the backend is changing the syntax of the url
|
||||
this.messages.forEach((msg) => {
|
||||
msg.content = msg.content.replace(/<\/?a[^>]*>/g, '')
|
||||
})
|
||||
} catch (error) {
|
||||
this.messages = []
|
||||
this.$toast.error(error.message)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user