Basic message implementation

This commit is contained in:
2025-12-15 11:08:23 +01:00
parent 2b6d4c49f5
commit aa9b3359b1
10 changed files with 783 additions and 1 deletions

View File

@@ -16,8 +16,16 @@ class ProfileController extends Controller
*/
public function index()
{
$all_users = UserModel::getPublicProfilesOfAllUsers();
// Remove current user from the list
$current_user_id = Session::get('user_id');
if ($current_user_id && isset($all_users[$current_user_id])) {
unset($all_users[$current_user_id]);
}
$this->View->render('profile/index', array(
'users' => UserModel::getPublicProfilesOfAllUsers())
'users' => $all_users)
);
}