mirror of https://github.com/Chocobozzz/PeerTube
Fix user configuration not taking default auto play setting into account when creating a new user
parent
fcdb05c8ea
commit
d18c50b8d0
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue