Fix user configuration not taking default auto play setting into account when creating a new user

pull/6788/head
Ludovic Piquet 2024-12-23 13:24:58 +01:00
parent fcdb05c8ea
commit d18c50b8d0
2 changed files with 2 additions and 1 deletions

View File

@ -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)
}
})

View File

@ -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,