1
0
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:
2020-07-10 10:24:39 +02:00
parent d23411dca7
commit 4de337421a
5 changed files with 73 additions and 3 deletions

View File

@ -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)?,
});