mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-26 13:38:51 +00:00
Administrators do get account image visibility
This commit is contained in:
parent
19887f525e
commit
e5b64746b4
@ -17,6 +17,7 @@ pub struct AdminUserInfoAPI {
|
||||
page_visibility: &'static str,
|
||||
directory: Option<String>,
|
||||
account_image: String,
|
||||
account_image_visibility: String,
|
||||
friend_list_public: bool,
|
||||
is_email_public: bool,
|
||||
personal_website: Option<String>,
|
||||
@ -32,6 +33,7 @@ impl AdminUserInfoAPI {
|
||||
pub fn new(user: User) -> Self {
|
||||
Self {
|
||||
account_image: user.account_image_url_for_admin(),
|
||||
account_image_visibility: user.account_image_visibility.to_api(),
|
||||
friend_list_public: user.public_friends_list,
|
||||
is_email_public: user.is_email_public,
|
||||
personal_website: user.personal_website,
|
||||
|
Loading…
Reference in New Issue
Block a user