mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fixed linting
This commit is contained in:
parent
24c6884b9a
commit
08b78aad7c
@ -164,11 +164,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async sendMessage(message) {
|
async sendMessage(message) {
|
||||||
//check for usersTag and change userid to username
|
// check for usersTag and change userid to username
|
||||||
message.usersTag.forEach(userTag =>{
|
message.usersTag.forEach((userTag) => {
|
||||||
let needle = `<usertag>${userTag.id}</usertag>`
|
const needle = `<usertag>${userTag.id}</usertag>`
|
||||||
let replacement = `<usertag>@${userTag.name.replaceAll(" ","-").toLowerCase()}</usertag>`
|
const replacement = `<usertag>@${userTag.name.replaceAll(' ', '-').toLowerCase()}</usertag>`
|
||||||
message.content = message.content.replaceAll(needle,replacement)
|
message.content = message.content.replaceAll(needle, replacement)
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
await this.$apollo.mutate({
|
await this.$apollo.mutate({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user