From 8c5dda2c7678e312eeaa3c4791b8ce42a0fa9976 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:39:50 +0900 Subject: [PATCH] fix --- packages/backend/src/server/api/endpoints/i/update.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index d684b43daf..3c5b02d4bb 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -498,7 +498,11 @@ export default class extends Endpoint { // eslint- this.globalEventService.publishInternalEvent('localUserUpdated', { id: user.id }); } - if (Object.keys(_profileUpdates).length > 0 || profile.verifiedLinks.length > 0) { + if ( + Object.keys(_profileUpdates).length > 0 || + profile.fields.filter(x => x.value.startsWith('https://')).length > 0 || + profile.verifiedLinks.length > 0 + ) { await this.userProfilesRepository.update(user.id, { ..._profileUpdates, verifiedLinks: [],