fix provider discovery

This commit is contained in:
Shroominic
2025-08-29 12:22:35 -03:00
parent 828e7ced10
commit 501b6e6292
+2 -2
View File
@@ -107,8 +107,8 @@ def parse_provider_announcement(event: dict[str, Any]) -> dict[str, Any] | None:
elif tag[0] == "d":
d_tag = tag[1]
# Validate required fields
if not endpoint_url or not provider_name or not d_tag:
# Early validation only applies to legacy/other kinds, not NIP-91
if kind != 38421 and (not endpoint_url or not provider_name or not d_tag):
logger.warning(
f"Invalid provider announcement - missing required tags: {event['id']}"
)