diff --git a/packages/tests/src/api/server/config-defaults.ts b/packages/tests/src/api/server/config-defaults.ts index e5542084527..d6b8eed2bcf 100644 --- a/packages/tests/src/api/server/config-defaults.ts +++ b/packages/tests/src/api/server/config-defaults.ts @@ -287,6 +287,7 @@ describe('Test config defaults', function () { expect(user.videosHistoryEnabled).to.be.false expect(user.videoQuota).to.equal(5242881) expect(user.videoQuotaDaily).to.equal(318742) + expect(user.autoPlayVideo).to.equal(false) } }) diff --git a/server/core/lib/user.ts b/server/core/lib/user.ts index 39ec281a6ec..6039e4e7919 100644 --- a/server/core/lib/user.ts +++ b/server/core/lib/user.ts @@ -65,7 +65,7 @@ function buildUser (options: { p2pEnabled: CONFIG.DEFAULTS.P2P.WEBAPP.ENABLED, videosHistoryEnabled: CONFIG.USER.HISTORY.VIDEOS.ENABLED, - autoPlayVideo: true, + autoPlayVideo: CONFIG.USER.PLAYBACK_AUTO_START, role, emailVerified,