Added Account Level to Profile

This commit is contained in:
BloxerHD 2025-11-05 14:23:15 +00:00
commit b1240d05e8

View file

@ -269,7 +269,8 @@ pub struct GetOwnProfileData{
region: i32, region: i32,
tz_name: String, tz_name: String,
user_id: String, user_id: String,
utc_offset: String utc_offset: String,
account_level: i32,
} }
#[get("/v1/api/people/@me/profile")] #[get("/v1/api/people/@me/profile")]
@ -291,7 +292,7 @@ pub fn build_profile(user: User) -> GetOwnProfileData {
let User { let User {
username, username,
pid, pid,
// account_level, account_level,
mii_data, mii_data,
gender, gender,
birthdate, birthdate,
@ -368,6 +369,7 @@ pub fn build_profile(user: User) -> GetOwnProfileData {
off_device_flag: YesNoVal(off_device_allowed), off_device_flag: YesNoVal(off_device_allowed),
region, region,
utc_offset: timezone_offset, utc_offset: timezone_offset,
account_level,
} }
} }