FIX: Removes a superfluous '@' in a message's 'to' array.

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/731/head
Cyrille Bollu 2019-09-26 09:45:22 +02:00
rodzic 7964820ef3
commit 0e67827a48
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -798,7 +798,7 @@ export default {
// Validate the last mention only when it matches a single account
if (result.data.result.accounts.length === 1) {
postData.content = postData.content.replace(regex, '@' + result.data.result.accounts[0].account)
postData.to.push('@' + result.data.result.accounts[0].account)
postData.to.push(result.data.result.accounts[0].account)
}
}