diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:15:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-11 09:37:26 +0200 |
commit | 93a1e67f86be299b7337d229a2c15fbda0a0d6e1 (patch) | |
tree | b0dbb7c57eca6730fb74d4b7a25bc29ded4cd601 /server/models/video/video-channel.ts | |
parent | 42cc1887afc80e10ff40675621fe683c76537a18 (diff) | |
download | PeerTube-93a1e67f86be299b7337d229a2c15fbda0a0d6e1.tar.gz PeerTube-93a1e67f86be299b7337d229a2c15fbda0a0d6e1.tar.zst PeerTube-93a1e67f86be299b7337d229a2c15fbda0a0d6e1.zip |
Fix channel search with complete handle
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index c04bd4355..8ccb818b3 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -121,7 +121,7 @@ export type SummaryOptions = { | |||
121 | for (const handle of options.handles || []) { | 121 | for (const handle of options.handles || []) { |
122 | const [ preferredUsername, host ] = handle.split('@') | 122 | const [ preferredUsername, host ] = handle.split('@') |
123 | 123 | ||
124 | if (!host) { | 124 | if (!host || host === WEBSERVER.HOST) { |
125 | or.push({ | 125 | or.push({ |
126 | '$Actor.preferredUsername$': preferredUsername, | 126 | '$Actor.preferredUsername$': preferredUsername, |
127 | '$Actor.serverId$': null | 127 | '$Actor.serverId$': null |