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:
@@ -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> {
|
||||
|
||||
|
Reference in New Issue
Block a user