mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Moved the can_posts_text value
This commit is contained in:
@ -155,7 +155,6 @@ class friendsController{
|
||||
"sent_request" => false,
|
||||
"received_request" => false,
|
||||
"following" => false,
|
||||
"can_post_texts" => false,
|
||||
);
|
||||
|
||||
//Check if the two personns are friend
|
||||
@ -180,10 +179,6 @@ class friendsController{
|
||||
if(CS::get()->components->friends->is_following(userID, $friendID))
|
||||
$response['following'] = true;
|
||||
|
||||
//Check if the user can post text on his friend page
|
||||
if(CS::get()->components->friends->can_post_text(userID, $friendID))
|
||||
$response['can_post_texts'] = true;
|
||||
|
||||
}
|
||||
|
||||
//Return the response
|
||||
|
Reference in New Issue
Block a user