mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Return user account image
This commit is contained in:
@ -46,4 +46,9 @@ impl User {
|
||||
pub fn error_account_image_url() -> String {
|
||||
user_data_url(crate::constants::ERROR_ACCOUNT_IMAGE)
|
||||
}
|
||||
|
||||
/// Check if this user has an account image or not
|
||||
pub fn has_account_image(&self) -> bool {
|
||||
self.account_image_path.is_some()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user