Support handles starting with @

pull/5817/head
Chocobozzz 2023-05-10 14:55:37 +02:00
parent 0ef18e5b89
commit c17a55fbca
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ export class RemoteSubscribeComponent extends FormReactive implements OnInit {
}
formValidated () {
const address = this.form.value['text']
let address = this.form.value['text'] || ''
address = address.replace(/^@/, '')
const [ username, hostname ] = address.split('@')
const protocol = window.location.protocol