Línea 1686... |
Línea 1686... |
1686 |
|
1686 |
|
1687 |
$comments = [];
|
1687 |
$comments = [];
|
1688 |
foreach ($records as $record) {
|
1688 |
foreach ($records as $record) {
|
1689 |
$user = $userMapper->fetchOne($record->user_id);
|
1689 |
$user = $userMapper->fetchOne($record->user_id);
|
1690 |
$companyMapper = CompanyMapper::getInstance($this->adapter);
|
1690 |
$companyMapper = CompanyMapper::getInstance($this->adapter);
|
Línea 1691... |
Línea 1691... |
1691 |
$company = $companyMapper->fetchOne(1);
|
1691 |
$company = $companyMapper->fetchOne($record->user_id);
|
1692 |
|
1692 |
|
1693 |
if ($record->user_id == $currentUser->id) {
|
1693 |
if ($record->user_id == $currentUser->id) {
|
1694 |
$link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
|
1694 |
$link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
|
Línea 1699... |
Línea 1699... |
1699 |
array_push($comments, [
|
1699 |
array_push($comments, [
|
1700 |
'unique' => uniqid(),
|
1700 |
'unique' => uniqid(),
|
1701 |
'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
|
1701 |
'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
|
1702 |
'user_name' => $user->first_name . ' ' . $user->last_name,
|
1702 |
'user_name' => $user->first_name . ' ' . $user->last_name,
|
1703 |
/* Aqui es Anderson */
|
1703 |
/* Aqui es Anderson */
|
1704 |
|
- |
|
- |
|
1704 |
'company' => $company,
|
1705 |
'user_image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
1705 |
'user_image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
1706 |
'time_elapsed' => Functions::timeAgo($record->added_on, $now),
|
1706 |
'time_elapsed' => Functions::timeAgo($record->added_on, $now),
|
1707 |
'comment' => $record->user_id,
|
1707 |
'comment' => $record->comment,
|
1708 |
'link_delete' => $link_delete
|
1708 |
'link_delete' => $link_delete
|
1709 |
]);
|
1709 |
]);
|
1710 |
}
|
1710 |
}
|
1711 |
$item['comment_add_url'] = $this->url()->fromRoute('feed/comment', ['id' => $feed->uuid]);
|
1711 |
$item['comment_add_url'] = $this->url()->fromRoute('feed/comment', ['id' => $feed->uuid]);
|
1712 |
$item['comments'] = $comments;
|
1712 |
$item['comments'] = $comments;
|