Profile pages now display user status.

This commit is contained in:
rainbow napkin 2025-09-18 02:43:43 -04:00
parent 6445950f90
commit 1384b02f4d
11 changed files with 119 additions and 5 deletions

View file

@ -63,7 +63,7 @@ const userSchema = new mongoose.Schema({
lastActive: {
type: mongoose.SchemaTypes.Date,
required: true,
default: new Date()
default: new Date(0)
},
rank: {
type: mongoose.SchemaTypes.String,
@ -505,6 +505,7 @@ userSchema.methods.getProfile = function(includeEmail = false){
id: this.id,
user: this.user,
date: this.date,
lastActive: this.lastActive,
tokes: this.tokes,
tokeCount: this.getTokeCount(),
img: this.img,