mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 00:45:18 +00:00
Add new user information
This commit is contained in:
@ -68,13 +68,17 @@ fn db_to_user(res: &database::RowResult) -> ResultBoxError<User> {
|
||||
account_image_path: res.get_optional_str("account_image_path")?,
|
||||
account_image_visibility,
|
||||
public_friends_list: res.get_legacy_bool("liste_amis_publique")?,
|
||||
is_email_public: res.get_legacy_bool("is_email_public")?,
|
||||
personal_website: res.get_optional_str("site_web")?,
|
||||
public_note: res.get_optional_str("public_note")?,
|
||||
location: res.get_optional_str("location")?,
|
||||
block_comments_on_his_page: res.get_legacy_bool("bloquecommentaire")?,
|
||||
allow_posts_from_friends: res.get_legacy_bool("autoriser_post_amis")?,
|
||||
account_creation_time: res.get_date_as_time("date_creation")?,
|
||||
allow_mails: res.get_legacy_bool("autorise_mail")?,
|
||||
lang: res.get_str("lang")?,
|
||||
|
||||
// Security questions
|
||||
security_question_1: res.get_optional_str("question1")?,
|
||||
security_answer_1: res.get_optional_str("reponse1")?,
|
||||
security_question_2: res.get_optional_str("question2")?,
|
||||
|
Reference in New Issue
Block a user