Re-work feed requests

This commit is contained in:
Jon Staab
2025-04-24 13:49:02 -07:00
parent 4031564c6c
commit 3d1a6a106e
9 changed files with 207 additions and 183 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ const query = (filters: Filter[]) =>
export const hasNegentropy = (url: string) => {
const p = relaysByUrl.get().get(url)?.profile
if (p?.supported_nips?.includes(77)) return true
if (p?.software?.includes("strfry") && !p?.version?.match(/^0\./)) return true
if (p?.negentropy) return true
if (p?.supported_nips?.includes?.(77)) return true
if (p?.software?.includes?.("strfry") && !p?.version?.match(/^0\./)) return true
return false
}