mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-22 12:34:25 +00:00
return total
This commit is contained in:
parent
d3d2a61056
commit
be9e492802
@ -97,6 +97,7 @@ class UserController extends AbstractController
|
||||
}
|
||||
|
||||
// Get room stats
|
||||
$total = 0;
|
||||
$rooms = [];
|
||||
|
||||
foreach ((array) $client->kevaListNamespaces() as $value)
|
||||
@ -120,6 +121,7 @@ class UserController extends AbstractController
|
||||
|
||||
foreach ((array) $client->kevaFilter($value['namespaceId'], sprintf('^[\d]+@%s$', $user['key'])) as $post)
|
||||
{
|
||||
$total++;
|
||||
$posts++;
|
||||
|
||||
$rooms[$value['displayName']] = $posts;
|
||||
@ -136,6 +138,7 @@ class UserController extends AbstractController
|
||||
'address' => $client->getAccountAddress(
|
||||
$user['key']
|
||||
),
|
||||
'total' => $total,
|
||||
'rooms' => $rooms,
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user