From 310136c3b637304d0a647ec4acea84ba57be9800 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 19 Nov 2017 13:27:00 +0100 Subject: [PATCH] User last activity upadted when the friends list is fetched --- RestControllers/friendsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RestControllers/friendsController.php b/RestControllers/friendsController.php index 0ddc510..14a353d 100644 --- a/RestControllers/friendsController.php +++ b/RestControllers/friendsController.php @@ -22,6 +22,9 @@ class friendsController{ if($friendsList === false) 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 $friendsList; }