Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
leafac committed Aug 1, 2024
1 parent dee5471 commit 9e42645
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.8 · 2024-08-01

- Changed the feed size limit from `2 ** 20` to `2 ** 19` to try and reduce server costs 💀

## 2.0.7 · 2024-06-21

- Added a “feed settings” page, which allows for adding a custom icon to a feed (https://github.com/leafac/kill-the-newsletter/issues/92)
Expand Down
4 changes: 2 additions & 2 deletions source/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ application.server?.push({
if (application.commandLineArguments.values.type === "email") {
application.email = new SMTPServer({
name: application.configuration.hostname,
size: 2 ** 20,
size: 2 ** 19,
disabledCommands: ["AUTH"],
key: await fs.readFile(application.configuration.tls.key, "utf-8"),
cert: await fs.readFile(application.configuration.tls.certificate, "utf-8"),
Expand Down Expand Up @@ -1713,7 +1713,7 @@ if (application.commandLineArguments.values.type === "email") {
while (deletedFeedEntries.length > 0) {
const feedEntry = deletedFeedEntries.pop()!;
feedLength += feedEntry.title.length + feedEntry.content.length;
if (feedLength > 2 ** 20) break;
if (feedLength > 2 ** 19) break;
}
for (const deletedFeedEntry of deletedFeedEntries) {
application.database.run(
Expand Down

0 comments on commit 9e42645

Please sign in to comment.