| Línea 123... |
Línea 123... |
| 123 |
|
123 |
|
| 124 |
} else {
|
124 |
} else {
|
| 125 |
$feed_uuid = $this->params()->fromRoute('feed');
|
125 |
$feed_uuid = $this->params()->fromRoute('feed');
|
| 126 |
if($feed_uuid) {
|
126 |
if($feed_uuid) {
|
| 127 |
$feedMapper = FeedMapper::getInstance($this->adapter);
|
127 |
$feedMapper = FeedMapper::getInstance($this->adapter);
|
| - |
|
128 |
$feed = $feedMapper->fetchOneByUuidAnyStatus($feed_uuid);
|
| 128 |
$feed = $feedMapper->fetchOneByUuid($feed_uuid);
|
129 |
/*
|
| 129 |
if($feed && $feed->type == Feed::TYPE_UPDATE && $feed->user_id == $currentUser->id && $feed->status == Feed::STATUS_PUBLISHED) {
|
130 |
if($feed && $feed->type == Feed::TYPE_UPDATE && $feed->user_id == $currentUser->id && $feed->status == Feed::STATUS_PUBLISHED) {
|
| 130 |
$notificationMapper = NotificationMapper::getInstance($this->adapter);
|
131 |
$notificationMapper = NotificationMapper::getInstance($this->adapter);
|
| 131 |
$notificationMapper->markAllNotificationsAsReadByUserIdAndFeedId($currentUser->id, $feed->id);
|
132 |
$notificationMapper->markAllNotificationsAsReadByUserIdAndFeedId($currentUser->id, $feed->id);
|
| 132 |
} else {
|
133 |
} else {
|
| 133 |
$feed_uuid = '';
|
134 |
$feed_uuid = '';
|
| 134 |
}
|
135 |
} */
|
| 135 |
} else {
|
136 |
} else {
|
| 136 |
$feed_uuid = '';
|
137 |
$feed_uuid = '';
|
| Línea 162... |
Línea 163... |
| 162 |
$image_size = $this->config['leaderslinked.image_sizes.feed_image_upload'];
|
163 |
$image_size = $this->config['leaderslinked.image_sizes.feed_image_upload'];
|
| Línea 163... |
Línea 164... |
| 163 |
|
164 |
|
| 164 |
$formFeed = new CreateForm();
|
165 |
$formFeed = new CreateForm();
|
| Línea -... |
Línea 166... |
| - |
|
166 |
$formShare = new ShareForm();
|
| - |
|
167 |
|
| - |
|
168 |
|
| - |
|
169 |
if($feed_uuid) {
|
| - |
|
170 |
$link_timeline = $this->url()->fromRoute('feed/timeline', ['id' => $currentUser->uuid, 'type' => 'user', 'feed' => $feed_uuid]);
|
| - |
|
171 |
} else {
|
| - |
|
172 |
$link_timeline = $this->url()->fromRoute('feed/timeline', ['id' => $currentUser->uuid, 'type' => 'user']);
|
| - |
|
173 |
}
|
| - |
|
174 |
|
| - |
|
175 |
|
| - |
|
176 |
|
| 165 |
$formShare = new ShareForm();
|
177 |
|
| 166 |
|
178 |
|
| 167 |
$this->layout()->setTemplate('layout/layout.phtml');
|
179 |
$this->layout()->setTemplate('layout/layout.phtml');
|
| 168 |
$viewModel = new ViewModel();
|
180 |
$viewModel = new ViewModel();
|
| 169 |
$viewModel->setVariables([
|
181 |
$viewModel->setVariables([
|
| 170 |
'user_uuid' => $user->uuid,
|
182 |
'user_uuid' => $user->uuid,
|
| 171 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
183 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
| 172 |
'fullname' => trim($user->first_name . ' ' . $user->last_name),
|
184 |
'fullname' => trim($user->first_name . ' ' . $user->last_name),
|
| 173 |
'description' => empty($userProfile->description) ? '' : trim($userProfile->description) ,
|
185 |
'description' => empty($userProfile->description) ? '' : trim($userProfile->description) ,
|
| 174 |
'country' => $country,
|
186 |
'country' => $country,
|
| 175 |
'visits' => $visits,
|
187 |
'visits' => $visits,
|
| - |
|
188 |
'connections' => $connections,
|
| 176 |
'connections' => $connections,
|
189 |
'feed' => '',
|
| 177 |
'feed' => $feed_uuid,
|
190 |
'link_timeline' => $link_timeline,
|
| 178 |
'formFeed' => $formFeed,
|
191 |
'formFeed' => $formFeed,
|
| 179 |
'formShare' => $formShare,
|
192 |
'formShare' => $formShare,
|
| 180 |
'image_size' => $image_size,
|
193 |
'image_size' => $image_size,
|