From 20494f122186bb1bfd82f4c598c4744acea27b0c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Nov 2017 15:22:39 +0100 Subject: Server shares user videos --- server/models/video/video-channel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/models') diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 1f4604f1d..f8414d4a8 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts @@ -264,7 +264,8 @@ loadByUrl = function (url: string, t?: Sequelize.Transaction) { const query: Sequelize.FindOptions = { where: { url - } + }, + include: [ VideoChannel['sequelize'].models.Account ] } if (t !== undefined) query.transaction = t -- cgit v1.2.3