From 47c065a1b412428dd90a74a7e63ad68d31cd361a Mon Sep 17 00:00:00 2001 From: Silberengel Date: Sun, 26 Oct 2025 06:58:20 +0100 Subject: [PATCH] fixed relay selection for discussion feed --- src/pages/primary/DiscussionsPage/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/primary/DiscussionsPage/index.tsx b/src/pages/primary/DiscussionsPage/index.tsx index 2deebb4..a69b44b 100644 --- a/src/pages/primary/DiscussionsPage/index.tsx +++ b/src/pages/primary/DiscussionsPage/index.tsx @@ -1,7 +1,7 @@ import { Button } from '@/components/ui/button' import { Card, CardContent } from '@/components/ui/card' // Removed dropdown menu import - no longer using relay selection -import { FAST_READ_RELAY_URLS, HASHTAG_REGEX } from '@/constants' +import { FAST_READ_RELAY_URLS, SEARCHABLE_RELAY_URLS, HASHTAG_REGEX } from '@/constants' import { normalizeUrl } from '@/lib/url' import { normalizeTopic } from '@/lib/discussion-topics' import { useFavoriteRelays } from '@/providers/FavoriteRelaysProvider' @@ -145,10 +145,12 @@ const DiscussionsPage = forwardRef((_, ref) => { } } - // Use favorite relays from provider (includes stored relay sets) + user's read relays + fast read relays + // Use a comprehensive relay list for discussions to ensure we get all topics + // Combine searchable relays (comprehensive list) + user's read relays + favorite relays const allRawRelays = [ - ...favoriteRelays, + ...SEARCHABLE_RELAY_URLS, // Comprehensive list of searchable relays ...userReadRelays, + ...favoriteRelays, ...FAST_READ_RELAY_URLS ]