fix: 🐛

This commit is contained in:
codytseng
2025-03-27 23:21:25 +08:00
parent 7826364003
commit b576afb971
6 changed files with 23 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ export function FeedProvider({ children }: { children: React.ReactNode }) {
const temporaryRelayUrls = searchParams
.getAll('r')
.map((url) => normalizeUrl(url))
.filter((url) => isWebsocketUrl(url))
.filter((url) => url && isWebsocketUrl(url))
if (temporaryRelayUrls.length) {
return await switchFeed('temporary', { temporaryRelayUrls })
}