Browse Source

cache user address request

main
ghost 9 months ago
parent
commit
7f649110a5
  1. 3
      src/Controller/UserController.php
  2. 2
      templates/default/user/list.html.twig

3
src/Controller/UserController.php

@ -131,6 +131,9 @@ class UserController extends AbstractController @@ -131,6 +131,9 @@ class UserController extends AbstractController
$list[] =
[
'name' => $user['key'],
'address' => $client->getAccountAddress(
$user['key']
),
'total' => $total,
'rooms' => $rooms,
];

2
templates/default/user/list.html.twig

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
{{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}
</span>
<p>
{{ 'boost' | trans }}: {{ user.name | account_address }}
{{ 'boost' | trans }}: {{ user.address }}
</p>
{% if user.rooms | length %}
<p>

Loading…
Cancel
Save