This commit is contained in:
2026-01-20 17:19:15 -08:00
parent 922b649e17
commit a90c772ad9
4 changed files with 41 additions and 75 deletions

View File

@@ -3520,32 +3520,6 @@ def check_url_exists_in_storage(
continue
if not backend_hits:
fallback_hits: List[Dict[str, Any]] = []
try:
fallback_hits = backend.search("url:*", limit=200) or []
except Exception:
fallback_hits = []
for hit in fallback_hits:
url_values = _extract_urls_from_hit(hit, backend, allow_backend_lookup=True)
if not url_values:
continue
matched = False
for url_value in url_values:
for needle in (needles or []):
if _match_normalized_url(str(needle or ""), str(url_value or "")):
matched = True
break
if matched:
break
if not matched:
continue
return _build_display_row_for_hit(hit, backend_name, original_url)
return None
hit = backend_hits[0]