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