diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:15:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:15:06 +0200 |
commit | b0268e27e1584d7afcaa3411df454c68130787be (patch) | |
tree | 44625690fa6f254795f25ead90228f1ff9bf3354 /server/models | |
parent | 655c957cc3004c4b4841538486f009511573cdf2 (diff) | |
download | PeerTube-b0268e27e1584d7afcaa3411df454c68130787be.tar.gz PeerTube-b0268e27e1584d7afcaa3411df454c68130787be.tar.zst PeerTube-b0268e27e1584d7afcaa3411df454c68130787be.zip |
Fix channel search with complete handle
Diffstat (limited to 'server/models')
-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 |