mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 08:25:16 +00:00
Can get the list of friends of another user
This commit is contained in:
@ -379,6 +379,11 @@ impl HttpRequestHandler {
|
||||
self.curr_user_id.clone()
|
||||
}
|
||||
|
||||
/// Get current user ID, return invalid user id value if there is none
|
||||
pub fn user_id_or_invalid(&self) -> UserID {
|
||||
self.user_id_opt().unwrap_or(UserID::invalid())
|
||||
}
|
||||
|
||||
/// Get an email included in the request
|
||||
pub fn post_email(&mut self, name: &str) -> ResultBoxError<String> {
|
||||
let mail = self.post_string(name)?;
|
||||
|
Reference in New Issue
Block a user