Hold /privacy behind a flag until counsel reads it, and fix leftover legal and email copy.

This commit is contained in:
adilallo committed 2026-11-20 15:36:06 -07:00
1 parent ead6c8f716
commit 072e5362f5
43 files changed
+548 -191

No files matched your search

+11 -3
View File
@@ -100,14 +100,22 @@ describe("resolveMailFrom", () => {
it("prefers SMTP_FROM, then CLOUDRON_MAIL_FROM", () => {
delete process.env.SMTP_FROM;
delete process.env.CLOUDRON_MAIL_FROM;
expect(resolveMailFrom()).toBe("noreply@localhost");
expect(resolveMailFrom()).toBe("CommunityRule <noreply@localhost>");
process.env.CLOUDRON_MAIL_FROM = "staging.app@communityrule.info";
expect(resolveMailFrom()).toBe("staging.app@communityrule.info");
expect(resolveMailFrom()).toBe(
"CommunityRule <staging.app@communityrule.info>",
);
process.env.SMTP_FROM = "Community Rule <hello@communityrule.info>";
expect(resolveMailFrom()).toBe(
"Community Rule <hello@communityrule.info>",
"CommunityRule <hello@communityrule.info>",
);
});
it("puts CommunityRule on a bare mailbox", () => {
delete process.env.SMTP_FROM;
process.env.CLOUDRON_MAIL_FROM = "hello@communityrule.info";
expect(resolveMailFrom()).toBe("CommunityRule <hello@communityrule.info>");
});
});