Products: images need https addresses; lowering a rating waits for review; library shows creators
CI / test (push) Successful in 50s
CI / test (push) Successful in 50s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
51d5bb5ff3
commit
d57674d90c
4 files changed
+14
-17
No files matched your search
@@ -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",
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user