Keep shared Rule files reachable, and say when a privacy change does not save.

This commit is contained in:
adilallo committed 2026-11-09 20:05:06 -07:00
1 parent b6795c1f18
commit 63ba21c614
9 files changed
+148 -16

No files matched your search

+5 -1
View File
@@ -153,7 +153,11 @@ describe("GET /api/uploads/[id]", () => {
);
expect(res.status).toBe(200);
expect(getReadablePublishedRuleMock).toHaveBeenCalledWith(
expect.objectContaining({ viaShareSlug: true }),
expect.objectContaining({
idOrSlug: "rule-shared",
viaShareSlug: true,
lookup: "id",
}),
);
expect(res.headers.get("Cache-Control")).toBe("private, no-store");
});