mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
26 lines
1002 B
JavaScript
26 lines
1002 B
JavaScript
"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);
|
|
};
|