diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-28 10:04:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-28 10:04:07 +0200 |
commit | c56b774d0594bb33917a9f1080deb2b8814079d7 (patch) | |
tree | c1575c62cb42d922e53d8695d41f6c518a7c1e26 /server/helpers | |
parent | 964298de4e112df0e126aad755c6b077442a2821 (diff) | |
download | PeerTube-c56b774d0594bb33917a9f1080deb2b8814079d7.tar.gz PeerTube-c56b774d0594bb33917a9f1080deb2b8814079d7.tar.zst PeerTube-c56b774d0594bb33917a9f1080deb2b8814079d7.zip |
Fix search with bad webfinger handles
Diffstat (limited to 'server/helpers')
-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) |