Skip to content

Commit

Permalink
Fix user configuration not taking default auto play setting into acco…
Browse files Browse the repository at this point in the history
…unt when creating a new user
  • Loading branch information
Khyvodul committed Dec 23, 2024
1 parent e606261 commit 813d8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/tests/src/api/server/config-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})

Expand Down
2 changes: 1 addition & 1 deletion server/core/lib/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 813d8f5

Please sign in to comment.