Brought up to date with the private repository (a06d3c5)

This commit is contained in:
S committed 2026-10-14 19:03:13 +03:00
commit eda992fcff
144 files changed
+31026

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
"use strict";
const accounts = require("./accounts.js");
const bans = require("./bans.js");
const chatlog = require("./chatlog.js");
const masterpieces = require("./masterpieces.js");
const support = require("./support.js");
const world = require("./world.js");
// an account deleted for good, by its owner (lib/manage.js) or by the admin
// (lib/panel.js), and what was kept about it elsewhere with it: its chat
// lines, its appeal, its feedback and username requests, and the paintings
// it made (from whoever holds one by now). what stays is said in the
// privacy policy (public/privacy.html): the record of bans and of what
// moderators did, under the name it had, until lib/retention.js ends it.
// the caller has taken the account out of the world and its pages.
module.exports = account => {
for (const id of masterpieces.madeBy(account)) {
world.removeMasterpiece(id);
}
bans.forget(account);
chatlog.forget(account);
support.forget(account);
accounts.remove(account);
};