User last activity upadted when the friends list is fetched

This commit is contained in:
Pierre 2017-11-19 13:27:00 +01:00
parent 900c7c7e5e
commit 310136c3b6

View File

@ -22,6 +22,9 @@ class friendsController{
if($friendsList === false) if($friendsList === false)
Rest_fatal_error(500, "Couldn't get friends list !"); Rest_fatal_error(500, "Couldn't get friends list !");
//Update the last activity of the user
CS::get()->components->user->updateLastActivity(userID);
//Return list //Return list
return $friendsList; return $friendsList;
} }