Products: images need https addresses; lowering a rating waits for review; library shows creators
CI / test (push) Successful in 50s

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
dhkatzandClaude Opus 5.5 committed 2026-10-29 19:14:12 -07:00
1 parent 51d5bb5ff3
commit d57674d90c
4 files changed
+14 -17

No files matched your search

+2 -2
View File
@@ -41,8 +41,8 @@ const options: sanitize.IOptions = {
attribs: { ...attribs, rel: "nofollow ugc noopener noreferrer", target: "_blank" },
}),
},
// Images whose address was refused are dropped.
exclusiveFilter: (frame) => frame.tag === "img" && !frame.attribs.src,
// Images need an absolute https address (scheme rules don't apply to relative ones); others are dropped.
exclusiveFilter: (frame) => frame.tag === "img" && !/^https:\/\//i.test(frame.attribs.src ?? ""),
disallowedTagsMode: "discard",
};