aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-28 16:40:21 +0200
committerChocobozzz <me@florianbigard.com>2021-07-28 16:40:21 +0200
commitfbd67e7f386504e50f2504cb6386700a58906f16 (patch)
tree1a7143aaea76ce4e195fb9d6214a0cd769c556ea /server/models/video/video.ts
parent164c8d46cf5c948a28b4ac0e596fad9b83b2c229 (diff)
downloadPeerTube-fbd67e7f386504e50f2504cb6386700a58906f16.tar.gz
PeerTube-fbd67e7f386504e50f2504cb6386700a58906f16.tar.zst
PeerTube-fbd67e7f386504e50f2504cb6386700a58906f16.zip
Add ability to search by uuids/actor names
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index c444f381e..fe92ead04 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1132,6 +1132,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1132 durationMax?: number // seconds 1132 durationMax?: number // seconds
1133 user?: MUserAccountId 1133 user?: MUserAccountId
1134 filter?: VideoFilter 1134 filter?: VideoFilter
1135 uuids?: string[]
1135 }) { 1136 }) {
1136 const serverActor = await getServerActor() 1137 const serverActor = await getServerActor()
1137 1138
@@ -1167,6 +1168,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1167 durationMin: options.durationMin, 1168 durationMin: options.durationMin,
1168 durationMax: options.durationMax, 1169 durationMax: options.durationMax,
1169 1170
1171 uuids: options.uuids,
1172
1170 search: options.search 1173 search: options.search
1171 } 1174 }
1172 1175