Merge origin/main into moderator-tools

The built client is main's here; it is rebuilt from the merged sources.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
SnipzilandClaude Opus 5.5 committed 2026-10-17 16:33:14 -04:00
commit d09ee94e16
33 files changed
+649 -230

No files matched your search

+4 -4
View File
@@ -239,7 +239,7 @@ const act = (mod, target, body) => {
return {ok: `${name} keeps the name.`};
case "clearBio":
target.bio = "";
accounts.save();
accounts.save(target);
return {ok: "Bio cleared."};
// the address they last signed in from, for good. which address that
// is, the moderator is not told.
@@ -322,7 +322,7 @@ const handle = async (req, res, url, from, web) => {
failuresByAddress.record(from.key);
if (known && !account) {
accounts.recordLogin(known, "mod", from.address, false);
accounts.save();
accounts.save(known);
}
reply(401, {error: "Wrong username or password."});
return;
@@ -338,12 +338,12 @@ const handle = async (req, res, url, from, web) => {
if (!totp.verify(account, String(body.code || ""))) {
failuresByAddress.record(from.key);
accounts.recordLogin(account, "mod", from.address, false);
accounts.save();
accounts.save(account);
reply(401, {error: "Wrong code."});
return;
}
accounts.recordLogin(account, "mod", from.address);
accounts.save();
accounts.save(account);
for (const [hash, session] of sessions) {
if (session.expiry < Date.now()) {
sessions.delete(hash);