add: implement 9 new scopes, 21 new api endpoints
This commit is contained in:
parent
c3139ef1d2
commit
8f16068a34
14 changed files with 973 additions and 35 deletions
|
@ -387,6 +387,22 @@ impl User {
|
|||
)
|
||||
.ok()
|
||||
}
|
||||
|
||||
/// Clean the struct for public viewing.
|
||||
pub fn clean(&mut self) {
|
||||
self.password = String::new();
|
||||
self.salt = String::new();
|
||||
|
||||
self.tokens = Vec::new();
|
||||
self.grants = Vec::new();
|
||||
|
||||
self.recovery_codes = Vec::new();
|
||||
self.totp = String::new();
|
||||
|
||||
self.settings = UserSettings::default();
|
||||
self.stripe_id = String::new();
|
||||
self.connections = HashMap::new();
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
|
@ -446,7 +462,7 @@ impl Notification {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct UserFollow {
|
||||
pub id: usize,
|
||||
pub created: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue