X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Foverviews.ts;h=ad879aad6c677bd33b80562be861a06afb340dca;hb=12edc1495a36b2199f1bf1ba37f50c7b694be382;hp=fb31932aa09d9df255cc2819e57198282b8813bc;hpb=610d0be13b3d01f653ef269271dd667a57c85ef2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts index fb31932aa..ad879aad6 100644 --- a/server/controllers/api/overviews.ts +++ b/server/controllers/api/overviews.ts @@ -114,6 +114,7 @@ async function getVideos ( sort: '-createdAt', includeLocalVideos: true, nsfw: buildNSFWFilter(res), + user: res.locals.oauth ? res.locals.oauth.token.User : undefined, withFiles: false, countVideos: false }, where)