mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-04 09:34:04 +00:00 
			
		
		
		
	Add legacy background image
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
use serde::Serialize;
 | 
			
		||||
 | 
			
		||||
use crate::data::user::{User, UserPageStatus, UserID};
 | 
			
		||||
use crate::helpers::{friends_helper, custom_emojies_helper};
 | 
			
		||||
use crate::helpers::{friends_helper, custom_emojies_helper, background_image_helper};
 | 
			
		||||
use crate::data::error::ResultBoxError;
 | 
			
		||||
use crate::utils::user_data_utils::user_data_url;
 | 
			
		||||
use crate::data::user::AccountImageVisibility::{EVERYONE, COMUNIC_USERS};
 | 
			
		||||
@@ -34,7 +34,8 @@ struct APIAdvancedInfo {
 | 
			
		||||
    publicNote: String,
 | 
			
		||||
    noCommentOnHisPage: bool,
 | 
			
		||||
    allowPostFromFriendOnHisPage: bool,
 | 
			
		||||
    account_creation_time: u64
 | 
			
		||||
    account_creation_time: u64,
 | 
			
		||||
    backgroundImage: String,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl APIUserInfo {
 | 
			
		||||
@@ -68,7 +69,8 @@ impl APIUserInfo {
 | 
			
		||||
            publicNote: info.public_note.clone().unwrap_or(String::new()),
 | 
			
		||||
            noCommentOnHisPage: info.block_comments_on_his_page,
 | 
			
		||||
            allowPostFromFriendOnHisPage: info.allow_posts_from_friends,
 | 
			
		||||
            account_creation_time: info.account_creation_time
 | 
			
		||||
            account_creation_time: info.account_creation_time,
 | 
			
		||||
            backgroundImage: background_image_helper::get_url(info.id),
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        Ok(user)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user