diff --git a/src/apps/web/cmd_stories.cpp b/src/apps/web/cmd_stories.cpp index 80e62dd..8965ccd 100644 --- a/src/apps/web/cmd_stories.cpp +++ b/src/apps/web/cmd_stories.cpp @@ -38,7 +38,8 @@ void cmd_stories(const std::vector &subArgs) { if (args["--days"]) days = args["--days"].asLong(); bool oddbeanOnly = args["--oddbean"].asBool(); - uint64_t limit = 10000; + uint64_t eventLimit = 1000; + uint64_t scanLimit = 100000; uint64_t timeWindow = 86400*days; uint64_t threshold = 10; @@ -51,7 +52,9 @@ void cmd_stories(const std::vector &subArgs) { uint64_t now = hoytech::curr_time_s(); env.generic_foreachFull(txn, env.dbi_Event__created_at, lmdb::to_sv(MAX_U64), lmdb::to_sv(MAX_U64), [&](auto k, auto v) { - if (output.size() > limit) return false; + if (output.size() > eventLimit) return false; + if (scanLimit == 0) return false; + scanLimit--; auto ev = lookupEventByLevId(txn, lmdb::from_sv(v)); PackedEventView packed(ev.buf); diff --git a/src/apps/web/tmpls/about.tmpl b/src/apps/web/tmpls/about.tmpl index adbfbf9..ece899f 100644 --- a/src/apps/web/tmpls/about.tmpl +++ b/src/apps/web/tmpls/about.tmpl @@ -8,7 +8,7 @@

- No crap. I just want to build a great distraction-free discussion site. No elements bouncing around as the page loads. No cookie pop-ups. In fact, no cookies, period. No tracking analytics. No "sign-up to our newsletter" modals that appear half way down. No dark patterns to boost engagement numbers. Javascript is optional (only needed for posting). + No crap. I just want a fast, distraction-free discussion site. No elements bouncing around as the page loads. No cookie pop-ups. In fact, no cookies, period. No tracking analytics. No "sign-up to our newsletter" modals that appear half way down. No dark patterns to boost engagement numbers. Javascript is optional (only needed for posting).

@@ -16,11 +16,11 @@

- How do I login? You don't. If you want to post or vote, I recommend using a browser extension such as nos2x (chrome, firefox), or one of several others. + How do I login? You don't. If you want to post or vote, I recommend using a browser extension such as nos2x (chrome, firefox), or one of several others. After installing, click "login" in the top-right and allow Oddbean to read your public key.

- Feeds. Oddbean is built around the concept of a "feeds", which are lists of nostr events. Feeds can be curated by people, by algorithms, or both (computers don't work without algorithms). The goal of Oddbean is to let you publish your own feeds according to whatever policies you or a community decide -- similar to a subreddit. A specification on how to create your own feeds is coming soon. The homepage is just a feed like any other, except one that I control. Don't like it? Don't use it. + Feeds. Oddbean is built around the concept of "feeds", which are lists of nostr events. Feeds can be curated by people, algorithms, or both (computers don't work without algorithms). The goal is to let you publish or read feeds according to whatever policies you or a community decide, similar to a subreddit or an RSS feed. A specification on how to create your own feeds is coming soon. For now the full source code of Oddbean is available here. The homepage is a feed like any other, except one that I control. Don't like it? Don't use it.