Skip to content

Commit 9e42645

Browse files
committed
1 parent dee5471 commit 9e42645

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.0.8 · 2024-08-01
4+
5+
- Changed the feed size limit from `2 ** 20` to `2 ** 19` to try and reduce server costs 💀
6+
37
## 2.0.7 · 2024-06-21
48

59
- Added a “feed settings” page, which allows for adding a custom icon to a feed (https://github.com/leafac/kill-the-newsletter/issues/92)

source/index.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ application.server?.push({
15521552
if (application.commandLineArguments.values.type === "email") {
15531553
application.email = new SMTPServer({
15541554
name: application.configuration.hostname,
1555-
size: 2 ** 20,
1555+
size: 2 ** 19,
15561556
disabledCommands: ["AUTH"],
15571557
key: await fs.readFile(application.configuration.tls.key, "utf-8"),
15581558
cert: await fs.readFile(application.configuration.tls.certificate, "utf-8"),
@@ -1713,7 +1713,7 @@ if (application.commandLineArguments.values.type === "email") {
17131713
while (deletedFeedEntries.length > 0) {
17141714
const feedEntry = deletedFeedEntries.pop()!;
17151715
feedLength += feedEntry.title.length + feedEntry.content.length;
1716-
if (feedLength > 2 ** 20) break;
1716+
if (feedLength > 2 ** 19) break;
17171717
}
17181718
for (const deletedFeedEntry of deletedFeedEntries) {
17191719
application.database.run(

0 commit comments

Comments
 (0)