diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-28 10:04:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-28 10:16:59 +0200 |
commit | cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3 (patch) | |
tree | 68b0e799ef6344c6737360672a79e199d9a0381f /server/helpers/webfinger.ts | |
parent | 4d09cfba7820544e72f04bf83c680bc24b775358 (diff) | |
download | PeerTube-cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3.tar.gz PeerTube-cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3.tar.zst PeerTube-cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3.zip |
Fix search with bad webfinger handles
Diffstat (limited to 'server/helpers/webfinger.ts')
-rw-r--r-- | server/helpers/webfinger.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/webfinger.ts b/server/helpers/webfinger.ts index 049808846..d1229e28f 100644 --- a/server/helpers/webfinger.ts +++ b/server/helpers/webfinger.ts | |||
@@ -19,7 +19,7 @@ async function loadActorUrlOrGetFromWebfinger (uriArg: string) { | |||
19 | const [ name, host ] = uri.split('@') | 19 | const [ name, host ] = uri.split('@') |
20 | let actor: ActorModel | 20 | let actor: ActorModel |
21 | 21 | ||
22 | if (host === WEBSERVER.HOST) { | 22 | if (!host || host === WEBSERVER.HOST) { |
23 | actor = await ActorModel.loadLocalByName(name) | 23 | actor = await ActorModel.loadLocalByName(name) |
24 | } else { | 24 | } else { |
25 | actor = await ActorModel.loadByNameAndHost(name, host) | 25 | actor = await ActorModel.loadByNameAndHost(name, host) |