aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-18 14:59:27 +0100
committerChocobozzz <me@florianbigard.com>2018-01-18 15:42:20 +0100
commit54e740594bc2eacd8026b5d2d6cfdfc06416a65b (patch)
tree486ce489a59653c667728be8f54ab038d37e1a99 /server/models/video/video.ts
parentf05a1c30c15d2ae35c11e241ca039a72eeb7d6ad (diff)
downloadPeerTube-54e740594bc2eacd8026b5d2d6cfdfc06416a65b.tar.gz
PeerTube-54e740594bc2eacd8026b5d2d6cfdfc06416a65b.tar.zst
PeerTube-54e740594bc2eacd8026b5d2d6cfdfc06416a65b.zip
Avoid too many requests and fetching outbox
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 514edfd9c..0d115367f 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -67,7 +67,7 @@ enum ScopeNames {
67 '$VideoChannel.Account.Actor.serverId$': null 67 '$VideoChannel.Account.Actor.serverId$': null
68 }, 68 },
69 { 69 {
70 '$VideoChannel.Account.Actor.followers.actorId$': actorId 70 '$VideoChannel.Account.Actor.ActorFollowers.actorId$': actorId
71 }, 71 },
72 { 72 {
73 id: { 73 id: {
@@ -106,7 +106,7 @@ enum ScopeNames {
106 { 106 {
107 attributes: [ ], 107 attributes: [ ],
108 model: ActorFollowModel.unscoped(), 108 model: ActorFollowModel.unscoped(),
109 as: 'followers', 109 as: 'ActorFollowers',
110 required: false 110 required: false
111 } 111 }
112 ] 112 ]