aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-10 14:55:37 +0200
committerChocobozzz <me@florianbigard.com>2023-05-10 14:55:37 +0200
commitc17a55fbca5f1cbe0fbf7aac6b862eb47d01cb4f (patch)
treebfd916e050ec615e9e16f2adf2dc683c9e32a0b0 /client/src/app
parent0ef18e5b895c19bb3b7ba994fdc44f1a3694201c (diff)
downloadPeerTube-c17a55fbca5f1cbe0fbf7aac6b862eb47d01cb4f.tar.gz
PeerTube-c17a55fbca5f1cbe0fbf7aac6b862eb47d01cb4f.tar.zst
PeerTube-c17a55fbca5f1cbe0fbf7aac6b862eb47d01cb4f.zip
Support handles starting with @
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts
index 61bcd5345..295b0812a 100644
--- a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts
+++ b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts
@@ -35,7 +35,9 @@ export class RemoteSubscribeComponent extends FormReactive implements OnInit {
35 } 35 }
36 36
37 formValidated () { 37 formValidated () {
38 const address = this.form.value['text'] 38 let address = this.form.value['text'] || ''
39 address = address.replace(/^@/, '')
40
39 const [ username, hostname ] = address.split('@') 41 const [ username, hostname ] = address.split('@')
40 42
41 const protocol = window.location.protocol 43 const protocol = window.location.protocol