diff --git a/CHANGELOG.md b/CHANGELOG.md index 6840ce37c4f..e9a07b058fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [2.85.3](https://github.com/EddieHubCommunity/BioDrop/compare/v2.85.2...v2.85.3) (2023-11-10) + + +### Bug Fixes + +* profile settings domain ([#9758](https://github.com/EddieHubCommunity/BioDrop/issues/9758)) ([17d43e6](https://github.com/EddieHubCommunity/BioDrop/commit/17d43e6fb0095d96599e47f99e3a82a7b1840e9f)) + + + ## [2.85.2](https://github.com/EddieHubCommunity/BioDrop/compare/v2.85.1...v2.85.2) (2023-11-08) @@ -34,12 +43,3 @@ -## [2.84.4](https://github.com/EddieHubCommunity/BioDrop/compare/v2.84.3...v2.84.4) (2023-11-05) - - -### Bug Fixes - -* navbar menu z-index issue in mobile dark mode ([#9732](https://github.com/EddieHubCommunity/BioDrop/issues/9732)) ([78c8079](https://github.com/EddieHubCommunity/BioDrop/commit/78c807939a88b3ae49d68b507112db8e9ed404af)) - - - diff --git a/config/app.json b/config/app.json index cca9e3b2abe..3e172599db2 100644 --- a/config/app.json +++ b/config/app.json @@ -1,5 +1,5 @@ { - "version": "2.85.2", + "version": "2.85.3", "alerts": [], "layouts": [ "classic", diff --git a/package-lock.json b/package-lock.json index cfb29cf72a1..0c4d2d94838 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "biodrop", - "version": "2.85.2", + "version": "2.85.3", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index a592d696080..2468216e231 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "biodrop", - "version": "2.85.2", + "version": "2.85.3", "private": false, "homepage": "https://biodrop.io", "engines": { diff --git a/pages/api/account/manage/settings.js b/pages/api/account/manage/settings.js index 94c0a350eff..8cf9dd1dee4 100644 --- a/pages/api/account/manage/settings.js +++ b/pages/api/account/manage/settings.js @@ -112,12 +112,12 @@ export async function updateSettingsApi(context, username, data) { update.domain = update.domain.replaceAll(".", "|"); // TODO: use getter/setter instead // check if domain is already used - if (update.domain) { + if (data.domain && data.domain !== beforeUpdate.domain) { const domainCheck = await Profile.findOne({ "settings.domain": update.domain, }); if (domainCheck) { - const domainCheckError = `Domain "${update.domain}" is already in use for username: ${username}`; + const domainCheckError = `Domain "${data.domain}" is already in use for username: ${username}`; log.error(domainCheckError); return { error: domainCheckError }; }