aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts20
1 files changed, 17 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 3611eca89..a28b5209b 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -676,9 +676,23 @@ export class VideoModel extends Model<VideoModel> {
676 limit: count, 676 limit: count,
677 order: getSort(sort), 677 order: getSort(sort),
678 where: { 678 where: {
679 name: { 679 [Sequelize.Op.or]: [
680 [Sequelize.Op.iLike]: '%' + value + '%' 680 {
681 } 681 name: {
682 [ Sequelize.Op.iLike ]: '%' + value + '%'
683 }
684 },
685 {
686 preferredUsername: Sequelize.where(Sequelize.col('preferredUsername'), {
687 [ Sequelize.Op.iLike ]: '%' + value + '%'
688 })
689 },
690 {
691 host: Sequelize.where(Sequelize.col('host'), {
692 [ Sequelize.Op.iLike ]: '%' + value + '%'
693 })
694 }
695 ]
682 } 696 }
683 } 697 }
684 698