fix(apps): use registry logos

This commit is contained in:
Xubin Ren
2026-05-29 17:26:58 +08:00
parent c1357e86de
commit d7bc1bcfb5
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -302,6 +302,11 @@ def _brand_candidates(app: dict[str, Any]) -> list[str]:
def _brand_payload(app: dict[str, Any]) -> tuple[str | None, str | None]:
declared_logo = str(app.get("logo_url") or "").strip()
if declared_logo.startswith(("https://", "/")):
declared_color = str(app.get("brand_color") or "").strip()
return declared_logo, declared_color or None
brand = None
domain_brand = None
for candidate in _brand_candidates(app):