mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
Brought up to date with the private repository (a06d3c5)
This commit is contained in:
commit
eda992fcff
144 files changed
+31026
No files matched your search
@@ -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);
|
||||
};
|
||||
Reference in new issue
Block a user