From 7f649110a548943d8cd4a23f916d33c2eeaa0b34 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 18 Feb 2024 17:39:42 +0200 Subject: [PATCH] cache user address request --- src/Controller/UserController.php | 3 +++ templates/default/user/list.html.twig | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index c37d405..18cab80 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -131,6 +131,9 @@ class UserController extends AbstractController $list[] = [ 'name' => $user['key'], + 'address' => $client->getAccountAddress( + $user['key'] + ), 'total' => $total, 'rooms' => $rooms, ]; diff --git a/templates/default/user/list.html.twig b/templates/default/user/list.html.twig index 69b159f..fc1f8b0 100644 --- a/templates/default/user/list.html.twig +++ b/templates/default/user/list.html.twig @@ -13,7 +13,7 @@ {{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}

- {{ 'boost' | trans }}: {{ user.name | account_address }} + {{ 'boost' | trans }}: {{ user.address }}

{% if user.rooms | length %}