diff --git a/src/user/settings.js b/src/user/settings.js index 1b6847ffdb..b66ab723d8 100644 --- a/src/user/settings.js +++ b/src/user/settings.js @@ -102,13 +102,14 @@ module.exports = function (User) { } } - // Dummy comment to trigger SC + // Co-pilot assisted code function validateLanguage(value, languageCodes) { if (value && !languageCodes.includes(value)) { throw new Error('[[error:invalid-language]]'); } } + // Co-pilot assisted code User.saveSettings = async function (uid, data) { const maxPostsPerPage = meta.config.maxPostsPerPage || 20; validatePaginationValue(data.postsPerPage, maxPostsPerPage);