diff --git a/script/render-preview.mjs b/script/render-preview.mjs
index c74d6ea..e2fec6d 100644
--- a/script/render-preview.mjs
+++ b/script/render-preview.mjs
@@ -16,8 +16,8 @@ const sample = {
Duration: '24 hours',
Total: 12,
TopProfiles: 'bob, carol',
- HasPopular: true,
- Popular: [
+ HasLatest: true,
+ Latest: [
{
Link: 'https://app.flotilla.social/nevent1qqs...',
Timestamp: 'Aug 25, 2026 at 9:00 AM',
diff --git a/src/digest.ts b/src/digest.ts
index 334c00b..ef9850a 100644
--- a/src/digest.ts
+++ b/src/digest.ts
@@ -77,8 +77,8 @@ export class Digest {
return {
Total: events.length,
Duration: displayDuration(Math.floor(Date.now() / 1000) - this.since),
- Popular: sorted.map((e) => getEventVariables(e)),
- HasPopular: sorted.length > 0,
+ Latest: sorted.map((e) => getEventVariables(e)),
+ HasLatest: sorted.length > 0,
UserName: displayProfile(userProfile, this.sub.email.split('@')[0]),
TopProfiles: displayList(topProfiles.map(([pk]) => displayProfileByPubkey(pk))),
}
diff --git a/src/emails/digest.mjml b/src/emails/digest.mjml
index 0e4ef68..58f5e2d 100644
--- a/src/emails/digest.mjml
+++ b/src/emails/digest.mjml
@@ -44,11 +44,11 @@
- {{#HasPopular}}
+ {{#HasLatest}}
Latest Activity
- {{#Popular}}
+ {{#Latest}}
- {{/Popular}}
+ {{/Latest}}
- {{/HasPopular}}
+ {{/HasLatest}}