From b302c80dc0d9ba8eabef9ef6576efe36afc57584 Mon Sep 17 00:00:00 2001 From: Wicklow <123956049+wickloww@users.noreply.github.com> Date: Fri, 7 Apr 2023 08:09:54 +0000 Subject: feature/ability to disable video history by default (#5728) * draft: ability to disable video history by default * Update configuration and add tests * Updated code based on review comments * Add tests on registration and video quota * Remove required video quotas in query * Fix tests --- server/lib/user.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/lib') diff --git a/server/lib/user.ts b/server/lib/user.ts index ffb57944a..56995cca3 100644 --- a/server/lib/user.ts +++ b/server/lib/user.ts @@ -56,6 +56,8 @@ function buildUser (options: { nsfwPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY, p2pEnabled: CONFIG.DEFAULTS.P2P.WEBAPP.ENABLED, + videosHistoryEnabled: CONFIG.USER.HISTORY.VIDEOS.ENABLED, + autoPlayVideo: true, role, -- cgit v1.2.3