From 3f2d246fecb1c5f3c028ffc90763fe304660780d Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 17 Oct 2025 16:55:44 +0200 Subject: [PATCH] Fix short bios not showing when sorting by compatibility --- backend/api/src/get-profiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/src/get-profiles.ts b/backend/api/src/get-profiles.ts index 3191965a..6ba4f518 100644 --- a/backend/api/src/get-profiles.ts +++ b/backend/api/src/get-profiles.ts @@ -104,7 +104,7 @@ export const loadProfiles = async (props: profileQueryType) => { Math.abs(l.city_longitude - lon) < radius / (69.0 * Math.cos(lat * Math.PI / 180)) && Math.pow(l.city_latitude - lat, 2) + Math.pow((l.city_longitude - lon) * Math.cos(lat * Math.PI / 180), 2) < Math.pow(radius / 69.0, 2) )) && - ((l.bio_length ?? 0) >= MIN_BIO_LENGTH) + (shortBio || (l.bio_length ?? 0) >= MIN_BIO_LENGTH) ) const cursor = after