diff --git a/backend/api/src/get-profiles.ts b/backend/api/src/get-profiles.ts index 1e4b7de8..dfd90fbc 100644 --- a/backend/api/src/get-profiles.ts +++ b/backend/api/src/get-profiles.ts @@ -437,15 +437,17 @@ export const loadProfiles = async (props: profileQueryType) => { last_active && where(`user_activity.last_online_time >= NOW() - INTERVAL $(last_active_interval)`, { last_active_interval: - last_active === 'today' - ? '1 day' - : last_active === '3days' - ? '3 days' - : last_active === 'week' - ? '7 days' - : last_active === 'month' - ? '30 days' - : '90 days', + last_active === 'now' + ? '30 minutes' + : last_active === 'today' + ? '1 day' + : last_active === '3days' + ? '3 days' + : last_active === 'week' + ? '7 days' + : last_active === 'month' + ? '30 days' + : '90 days', }), // Exclude profiles that the requester has chosen to hide diff --git a/common/src/choices.ts b/common/src/choices.ts index 0b918d31..ff3354f5 100644 --- a/common/src/choices.ts +++ b/common/src/choices.ts @@ -227,6 +227,7 @@ export const GENDERS_PLURAL = { } as const export const LAST_ONLINE_CHOICES = { + now: 'Currently online', today: 'Today', '3days': 'Last 3 days', week: 'Last week',