mirror of https://github.com/Chocobozzz/PeerTube
Support handles starting with @
parent
0ef18e5b89
commit
c17a55fbca
|
@ -35,7 +35,9 @@ export class RemoteSubscribeComponent extends FormReactive implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
formValidated () {
|
formValidated () {
|
||||||
const address = this.form.value['text']
|
let address = this.form.value['text'] || ''
|
||||||
|
address = address.replace(/^@/, '')
|
||||||
|
|
||||||
const [ username, hostname ] = address.split('@')
|
const [ username, hostname ] = address.split('@')
|
||||||
|
|
||||||
const protocol = window.location.protocol
|
const protocol = window.location.protocol
|
||||||
|
|
Loading…
Reference in New Issue