ActivityPub-federated video streaming platform using P2P directly in your web browser
Video get SQL optimization
Chocobozzz3e5002477a76
diff --git a/server/models/video/video.ts b/server/models/video/video.tsindex 7af68b20bb..71e37e1471 100644--- a/server/models/video/video.ts+++ b/server/models/video/video.ts@@ -127,22 +127,30 @@ enum ScopeNames {attributes: {exclude: [ 'privateKey', 'publicKey' ]},- model: () => ActorModel,- required: true+ model: () => ActorModel.unscoped(),+ required: true,+ include: [+ {+ attributes: [ 'host' ],+ model: () => ServerModel.unscoped(),+ required: false+ }+ ]},{- model: () => AccountModel,+ model: () => AccountModel.unscoped(),required: true,include: [{- model: () => ActorModel,+ model: () => ActorModel.unscoped(),attributes: {exclude: [ 'privateKey', 'publicKey' ]},required: true,include: [{- model: () => ServerModel,+ attributes: [ 'host' ],+ model: () => ServerModel.unscoped(),required: false}]