Línea 1730... |
Línea 1730... |
1730 |
$item['feed_increment_external_counter_url'] = '';
|
1730 |
$item['feed_increment_external_counter_url'] = '';
|
Línea 1731... |
Línea 1731... |
1731 |
|
1731 |
|
Línea 1732... |
Línea 1732... |
1732 |
$item['feed_vote_url'] = $fastSurveyVote ? '' : $this->url()->fromRoute('feed/vote', ['id' => $feed->uuid]);
|
1732 |
$item['feed_vote_url'] = $fastSurveyVote ? '' : $this->url()->fromRoute('feed/vote', ['id' => $feed->uuid]);
|
1733 |
|
1733 |
|
1734 |
} else {
|
1734 |
} else {
|
1735 |
$item['feed_save_reaction_url'] = $this->url()->fromRoute('feed/save-reaction', $params);
|
1735 |
$item['feed_save_reaction_url'] = $this->url()->fromRoute('feed/save-reaction', $params, ['force_canonical' => true]);
|
1736 |
$item['feed_delete_reaction_url'] = $this->url()->fromRoute('feed/delete-reaction', $params);
|
1736 |
$item['feed_delete_reaction_url'] = $this->url()->fromRoute('feed/delete-reaction', $params, ['force_canonical' => true]);
|
1737 |
$item['feed_share_url'] = $this->url()->fromRoute('feed/share', $params);
|
1737 |
$item['feed_share_url'] = $this->url()->fromRoute('feed/share', $params, ['force_canonical' => true]);
|
1738 |
$item['feed_share_external_url'] = $share_external_url;
|
1738 |
$item['feed_share_external_url'] = $share_external_url;
|
1739 |
$item['feed_increment_external_counter_url'] = $share_increment_external_counter_url;
|
1739 |
$item['feed_increment_external_counter_url'] = $share_increment_external_counter_url;
|
Línea 1745... |
Línea 1745... |
1745 |
|
1745 |
|
1746 |
|
1746 |
|
1747 |
if ($feed->type == Feed::TYPE_COMPANY) {
|
1747 |
if ($feed->type == Feed::TYPE_COMPANY) {
|
1748 |
$companyMapper = CompanyMapper::getInstance($this->adapter);
|
1748 |
$companyMapper = CompanyMapper::getInstance($this->adapter);
|
1749 |
$company = $companyMapper->fetchOne($feed->company_id);
|
1749 |
$company = $companyMapper->fetchOne($feed->company_id);
|
1750 |
$item['owner_url'] = $this->url()->fromRoute('company/view', ['id' => $company->uuid]);
|
1750 |
$item['owner_url'] = $this->url()->fromRoute('company/view', ['id' => $company->uuid], ['force_canonical' => true]);
|
1751 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $company->uuid, 'type' => 'company', 'filename' => $company->image],['force_canonical' => true]);
|
1751 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $company->uuid, 'type' => 'company', 'filename' => $company->image],['force_canonical' => true]);
|
Línea 1752... |
Línea 1752... |
1752 |
$item['owner_name'] = $company->name;
|
1752 |
$item['owner_name'] = $company->name;
|
Línea 1766... |
Línea 1766... |
1766 |
$item['owner_url'] = '';
|
1766 |
$item['owner_url'] = '';
|
1767 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $group->uuid, 'type' => 'group', 'filename' => $group->image],['force_canonical' => true]);
|
1767 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $group->uuid, 'type' => 'group', 'filename' => $group->image],['force_canonical' => true]);
|
1768 |
$item['owner_name'] = $group->name;
|
1768 |
$item['owner_name'] = $group->name;
|
Línea 1769... |
Línea 1769... |
1769 |
|
1769 |
|
1770 |
if ($group->user_id == $currentUser->id) {
|
1770 |
if ($group->user_id == $currentUser->id) {
|
1771 |
$item['feed_delete_url'] = $this->url()->fromRoute('feed/delete', $params);
|
1771 |
$item['feed_delete_url'] = $this->url()->fromRoute('feed/delete', $params, ['force_canonical' => true]);
|
1772 |
}
|
1772 |
}
|
1773 |
} else {
|
1773 |
} else {
|
1774 |
$userMapper = UserMapper::getInstance($this->adapter);
|
1774 |
$userMapper = UserMapper::getInstance($this->adapter);
|
Línea 1775... |
Línea 1775... |
1775 |
$user = $userMapper->fetchOne($feed->user_id);
|
1775 |
$user = $userMapper->fetchOne($feed->user_id);
|
1776 |
|
1776 |
|
1777 |
$item['owner_url'] = $this->url()->fromRoute('profile/view', ['id' => $user->uuid]);
|
1777 |
$item['owner_url'] = $this->url()->fromRoute('profile/view', ['id' => $user->uuid]);
|
Línea 1778... |
Línea 1778... |
1778 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image],['force_canonical' => true]);
|
1778 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image],['force_canonical' => true]);
|
1779 |
$item['owner_name'] = $user->first_name . ' ' . $user->last_name;
|
1779 |
$item['owner_name'] = $user->first_name . ' ' . $user->last_name;
|
1780 |
|
1780 |
|
1781 |
if ($feed->user_id == $currentUser->id) {
|
1781 |
if ($feed->user_id == $currentUser->id) {
|
1782 |
$item['feed_delete_url'] = $this->url()->fromRoute('feed/delete', $params);
|
1782 |
$item['feed_delete_url'] = $this->url()->fromRoute('feed/delete', $params, ['force_canonical' => true]);
|
1783 |
}
|
1783 |
}
|
1784 |
}
|
1784 |
}
|
1785 |
} else {
|
1785 |
} else {
|
1786 |
if ($feed->user_id == $currentUser->id) {
|
1786 |
if ($feed->user_id == $currentUser->id) {
|
Línea 1787... |
Línea 1787... |
1787 |
$item['feed_delete_url'] = $this->url()->fromRoute('feed/delete', $params);
|
1787 |
$item['feed_delete_url'] = $this->url()->fromRoute('feed/delete', $params, ['force_canonical' => true]);
|
1788 |
}
|
1788 |
}
|