mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
feat: stats graphs, playtime, ip search against ban evasion, 150-char chat
- stats graphs for the admin and moderator panels (lib/stats.js, public/stats-view.html) - playtime, private unless shown on the card's bio tab; set on the account page - search accounts by ip address, only against ban evasion; mods see no addresses and each search is logged - privacy policy for the above (terms version 2026-10-17) - the per-second save looks only at accounts in play, with a slow sweep of the rest - items in several dens at once; chat filter hides slurs and threats by default - sexual usernames refused; moderators may enter full rooms; guide login allowed - 150-character chat box (client build 55) - fixes: gifts, trades, dens, pets in dens, den recycling, special animals' colours, jammer walls, settings switches; the buddy list sent at login - the item giver, the rules screen and the art studio rework
This commit is contained in:
1 parent
8400d2f928
commit
04f468af2c
56 files changed
+25667
-3894
No files matched your search
@@ -142,6 +142,8 @@ const profile = (account, from) => {
|
||||
lastSeen: account.lastSeen || account.lastLogin || null,
|
||||
online: Boolean(world.findOnline(account.username)),
|
||||
logins: account.numLogins || 0,
|
||||
playtime: account.playtime,
|
||||
playtimePublic: account.playtimePublic,
|
||||
animals: account.avatars.length,
|
||||
animalType: avatar ? avatar.type : null,
|
||||
items: account.items.length,
|
||||
@@ -362,6 +364,11 @@ const act = (account, body, req, from, res) => {
|
||||
accounts.save();
|
||||
return {ok: bio ? "Saved." : "Removed."};
|
||||
}
|
||||
// whether their card in the game shows how long they have played.
|
||||
case "playtimePublic":
|
||||
account.playtimePublic = body.on === true;
|
||||
accounts.save();
|
||||
return {ok: account.playtimePublic ? "Others can see your playtime on your card." : "Your playtime is private."};
|
||||
// their Discord username, for their card in the game. empty takes it off.
|
||||
case "discord": {
|
||||
const name = badges.discordName(body.name);
|
||||
|
||||
Reference in new issue
Block a user