| Línea 1690... |
Línea 1690... |
| 1690 |
$comments = [];
|
1690 |
$comments = [];
|
| 1691 |
foreach ($records as $record) {
|
1691 |
foreach ($records as $record) {
|
| 1692 |
$user = $userMapper->fetchOne($record->user_id);
|
1692 |
$user = $userMapper->fetchOne($record->user_id);
|
| Línea 1693... |
Línea 1693... |
| 1693 |
|
1693 |
|
| 1694 |
array_push($companies, $company);
|
1694 |
array_push($companies, $company);
|
| 1695 |
foreach ($companies as $key => $value) {
|
1695 |
foreach ($company as $key) {
|
| 1696 |
if ($record->user_id == $currentUser->id) {
|
1696 |
if ($record->user_id == $currentUser->id) {
|
| 1697 |
$link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
|
1697 |
$link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
|
| 1698 |
} else {
|
1698 |
} else {
|
| 1699 |
$link_delete = '';
|
1699 |
$link_delete = '';
|
| Línea 1702... |
Línea 1702... |
| 1702 |
array_push($comments, [
|
1702 |
array_push($comments, [
|
| 1703 |
'unique' => uniqid(),
|
1703 |
'unique' => uniqid(),
|
| 1704 |
'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
|
1704 |
'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
|
| 1705 |
'user_name' => $user->first_name . ' ' . $user->last_name,
|
1705 |
'user_name' => $user->first_name . ' ' . $user->last_name,
|
| 1706 |
/* Aqui es Anderson */
|
1706 |
/* Aqui es Anderson */
|
| 1707 |
'company' => $companies,
|
1707 |
'company' => $key,
|
| 1708 |
'user_image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
1708 |
'user_image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
| 1709 |
'time_elapsed' => Functions::timeAgo($record->added_on, $now),
|
1709 |
'time_elapsed' => Functions::timeAgo($record->added_on, $now),
|
| 1710 |
'comment' => $record->comment,
|
1710 |
'comment' => $record->comment,
|
| 1711 |
'link_delete' => $link_delete
|
1711 |
'link_delete' => $link_delete
|
| 1712 |
]);
|
1712 |
]);
|