aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-28 10:04:07 +0200
committerChocobozzz <me@florianbigard.com>2019-05-28 10:16:59 +0200
commitcce1b3dfd386c77a02f2b4f18f60bd916a60a2d3 (patch)
tree68b0e799ef6344c6737360672a79e199d9a0381f /server/helpers
parent4d09cfba7820544e72f04bf83c680bc24b775358 (diff)
downloadPeerTube-cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3.tar.gz
PeerTube-cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3.tar.zst
PeerTube-cce1b3dfd386c77a02f2b4f18f60bd916a60a2d3.zip
Fix search with bad webfinger handles
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/webfinger.ts2
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)