aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/index.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-14 16:51:35 +0200
committerChocobozzz <me@florianbigard.com>2018-09-14 16:51:35 +0200
commita2377d15ee09301cf4cc5434ad865a21918da15f (patch)
tree4325153370bb19511ff162114056a5c7fd89744d /server/controllers/api/videos/index.ts
parentd61b817890d5d5bba61d447518321870498028d8 (diff)
downloadPeerTube-a2377d15ee09301cf4cc5434ad865a21918da15f.tar.gz
PeerTube-a2377d15ee09301cf4cc5434ad865a21918da15f.tar.zst
PeerTube-a2377d15ee09301cf4cc5434ad865a21918da15f.zip
Refractor activities sending
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r--server/controllers/api/videos/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 0c9e6c2d1..8353a649a 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -393,9 +393,9 @@ async function viewVideo (req: express.Request, res: express.Response) {
393 Redis.Instance.setIPVideoView(ip, videoInstance.uuid) 393 Redis.Instance.setIPVideoView(ip, videoInstance.uuid)
394 ]) 394 ])
395 395
396 const serverAccount = await getServerActor() 396 const serverActor = await getServerActor()
397 397
398 await sendCreateView(serverAccount, videoInstance, undefined) 398 await sendCreateView(serverActor, videoInstance, undefined)
399 399
400 return res.status(204).end() 400 return res.status(204).end()
401} 401}