Moved the can_posts_text value

This commit is contained in:
Pierre
2018-01-04 17:51:21 +01:00
parent debbdbc7ca
commit 814d840e38
2 changed files with 10 additions and 5 deletions

View File

@ -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