Fix tag things

This commit is contained in:
Hri7566 2024-08-03 03:49:46 -04:00
parent 9b48d41bd8
commit f0e3622306
5 changed files with 7 additions and 7 deletions

View File

@ -45,6 +45,7 @@ Brandon's server originally used MongoDB for storing user data, but there are to
- Triggers notification on every connected socket, then shuts down after 20 seconds - Triggers notification on every connected socket, then shuts down after 20 seconds
- Server must be setup as a pm2/docker/systemd process for automatic restarting - Server must be setup as a pm2/docker/systemd process for automatic restarting
- Ability to change tags - Ability to change tags
- Similar to the MPP.net server, but uses a Brandon-style admin message
## TODO ## TODO
@ -54,6 +55,7 @@ Brandon's server originally used MongoDB for storing user data, but there are to
- Permission groups and permissions - Permission groups and permissions
- Probable permission groups: owner, admin, mod, trialmod, default - Probable permission groups: owner, admin, mod, trialmod, default
- Setup tags for each permission group - Setup tags for each permission group
- Redo ratelimits
- Full server-wide event bus - Full server-wide event bus
- Channel events - Channel events
- Socket events - Socket events

View File

@ -31,11 +31,11 @@ enableAdminEval: true
# The token validation scheme. Valid values are "none", "jwt" and "uuid". # The token validation scheme. Valid values are "none", "jwt" and "uuid".
# This server will still validate existing tokens generated with other schemes if not set to "none". # This server will still validate existing tokens generated with other schemes if not set to "none".
tokenAuth: jwt tokenAuth: none
# The browser challenge scheme. Valid values are "none", "obf" and "basic". # The browser challenge scheme. Valid values are "none", "obf" and "basic".
# This is to change what is sent in the "b" message. # This is to change what is sent in the "b" message.
# "none" will disable the browser challenge, # "none" will disable the browser challenge,
# "obf" will sent an obfuscated function to the client, # "obf" will sent an obfuscated function to the client,
# and "basic" will just send a simple function that expects a boolean. # and "basic" will just send a simple function that expects a boolean.
browserChallenge: basic browserChallenge: none

2
public

@ -1 +1 @@
Subproject commit ccc02f653a3eebeb2d64f894b978cc78a5c62c42 Subproject commit 7f58dd80a3cc72a4f141c3a94e561e3f2bf3c5fe

View File

@ -360,9 +360,7 @@ export class Socket extends EventEmitter {
try { try {
tag = JSON.parse(this.user.tag) as Tag; tag = JSON.parse(this.user.tag) as Tag;
} catch (err) { } catch (err) { }
logger.warn("Unable to parse tag:", err);
}
return { return {
_id: facadeID, _id: facadeID,

View File

@ -70,7 +70,7 @@ export const hi: ServerEventListener<"hi"> = {
}; };
} }
logger.debug("Tag:", part.tag); //logger.debug("Tag:", part.tag);
socket.sendArray([{ socket.sendArray([{
m: "hi", m: "hi",