From 17d43e6fb0095d96599e47f99e3a82a7b1840e9f Mon Sep 17 00:00:00 2001 From: Eddie Jaoude Date: Fri, 10 Nov 2023 08:02:05 +0000 Subject: [PATCH 1/2] fix: profile settings domain (#9758) --- pages/api/account/manage/settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }; } From 5b460dc0de47fff0753cd46a651594112cf0e1fd Mon Sep 17 00:00:00 2001 From: Conventional Changelog Action Date: Fri, 10 Nov 2023 08:02:27 +0000 Subject: [PATCH 2/2] chore(release): v2.85.3 [skip ci] --- CHANGELOG.md | 18 +++++++++--------- config/app.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) 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 ee524439066..f53436088ce 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 1df31053919..1fb481e85b9 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": {