fix(wcd): create sticker assets when reused content is a reference
Build, Push and Deploy / build (push) Successful in 11s
Build, Push and Deploy / deploy (push) Successful in 9s

This commit is contained in:
2026-09-11 19:50:00 +08:00
parent 69162e3551
commit c26de1f498
2 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -1342,7 +1342,7 @@ def _find_asset_by_sha256(digest: str) -> dict | None:
def _register_import_asset(name: str, content: bytes, mime: str) -> dict:
digest = hashlib.sha256(content).hexdigest()
existing = _find_asset_by_sha256(digest)
if existing:
if existing and existing.get("type") == "sticker":
return existing
asset_id = f"asset_{uuid.uuid4().hex}"