aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-17 15:11:12 +0200
committerChocobozzz <me@florianbigard.com>2018-04-17 15:11:12 +0200
commit66dc59076413b9a4aa0899d3192b0bdf03ee654d (patch)
tree7743a66a4d7a9fb1dba1d4d744c059dcd35c9224 /server
parent4195cd2bc5046d4cdf1c677c27cd41f427d7a13a (diff)
downloadPeerTube-66dc59076413b9a4aa0899d3192b0bdf03ee654d.tar.gz
PeerTube-66dc59076413b9a4aa0899d3192b0bdf03ee654d.tar.zst
PeerTube-66dc59076413b9a4aa0899d3192b0bdf03ee654d.zip
Add ability to click on the account in watch page
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/videos/index.ts2
-rw-r--r--server/models/video/video.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 244099015..b4cd67158 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -418,7 +418,7 @@ async function removeVideo (req: express.Request, res: express.Response) {
418} 418}
419 419
420async function searchVideos (req: express.Request, res: express.Response, next: express.NextFunction) { 420async function searchVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
421 const resultList = await VideoModel.searchAndPopulateAccountAndServerAndTags( 421 const resultList = await VideoModel.searchAndPopulateAccountAndServer(
422 req.query.search, 422 req.query.search,
423 req.query.start, 423 req.query.start,
424 req.query.count, 424 req.query.count,
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index ffb9725b4..a7923b477 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -696,7 +696,7 @@ export class VideoModel extends Model<VideoModel> {
696 }) 696 })
697 } 697 }
698 698
699 static async searchAndPopulateAccountAndServerAndTags (value: string, start: number, count: number, sort: string) { 699 static async searchAndPopulateAccountAndServer (value: string, start: number, count: number, sort: string) {
700 const query: IFindOptions<VideoModel> = { 700 const query: IFindOptions<VideoModel> = {
701 offset: start, 701 offset: start,
702 limit: count, 702 limit: count,