1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-20 03:48:50 +00:00

Can get the list of friends of another user

This commit is contained in:
2020-06-30 07:49:23 +02:00
parent 8c424bcec4
commit 9a3b565f00
4 changed files with 30 additions and 1 deletions

View File

@@ -111,6 +111,11 @@ pub fn allow_posts_on_his_page(user_id: &UserID) -> ResultBoxError<bool> {
Ok(find_user_by_id(user_id)?.allow_posts_from_friends)
}
/// Check out whether the friends list of a user is public or not
pub fn is_user_friends_list_public(user_id: &UserID) -> ResultBoxError<bool> {
Ok(find_user_by_id(user_id)?.public_friends_list)
}
/// Check out if a user can create posts on another user page
pub fn can_create_posts(user_id: &UserID, target_id: &UserID) -> ResultBoxError<bool> {