|
|
@ -53,23 +53,26 @@ class RoomController extends AbstractController |
|
|
|
$this->getParameter('app.kevacoin.password') |
|
|
|
$this->getParameter('app.kevacoin.password') |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Get room messages |
|
|
|
// Get room posts |
|
|
|
$messages = []; |
|
|
|
$posts = []; |
|
|
|
|
|
|
|
|
|
|
|
foreach ((array) $client->kevaFilter($request->get('namespace')) as $message) |
|
|
|
foreach ((array) $client->kevaFilter($request->get('namespace')) as $message) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$messages[] = $message; |
|
|
|
$posts[] = |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'key' => $message['key'], |
|
|
|
|
|
|
|
'value' => $message['value'], |
|
|
|
|
|
|
|
'height' => $message['height'], |
|
|
|
|
|
|
|
'vout' => $message['vout'], |
|
|
|
|
|
|
|
'txid' => $message['txid'], |
|
|
|
|
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Return result |
|
|
|
// Return result |
|
|
|
return $this->render( |
|
|
|
return $this->render( |
|
|
|
'default/room/index.html.twig', |
|
|
|
'default/room/index.html.twig', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'room' => |
|
|
|
'posts' => $posts, |
|
|
|
[ |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace') |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
'messages' => $messages, |
|
|
|
|
|
|
|
'request' => $request |
|
|
|
'request' => $request |
|
|
|
] |
|
|
|
] |
|
|
|
); |
|
|
|
); |
|
|
|