mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Can update like status of user page
This commit is contained in:
@ -39,7 +39,7 @@ struct APIAdvancedInfo {
|
||||
backgroundImage: String,
|
||||
number_friends: usize,
|
||||
pageLikes: usize,
|
||||
user_page_like: bool,
|
||||
user_like_page: bool,
|
||||
can_post_texts: bool,
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ impl APIUserInfo {
|
||||
backgroundImage: background_image_helper::get_url(&info.id),
|
||||
number_friends,
|
||||
pageLikes: likes_helper::count(info.id.id(), LikeType::USER)?,
|
||||
user_page_like: likes_page,
|
||||
user_like_page: likes_page,
|
||||
can_post_texts: user_helper::can_create_posts(&curr_user_id, &info.id)?,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user