Línea 279... |
Línea 279... |
279 |
}
|
279 |
}
|
Línea 280... |
Línea 280... |
280 |
|
280 |
|
281 |
private function renderFeed($feed, $now)
|
281 |
private function renderFeed($feed, $now)
|
Línea 282... |
Línea 282... |
282 |
{
|
282 |
{
|
283 |
|
- |
|
284 |
$sandbox = $this->config['leaderslinked.runmode.sandbox'];
|
- |
|
285 |
if($sandbox) {
|
- |
|
286 |
$company_profile_url = $this->config['leaderslinked.frontend.sandbox_company_profile'];
|
- |
|
287 |
$user_profile_url = $this->config['leaderslinked.frontend.sandbox_user_profile'];
|
- |
|
288 |
|
- |
|
289 |
} else {
|
283 |
|
290 |
$company_profile_url = $this->config['leaderslinked.frontend.production_company_profile'];
|
- |
|
291 |
$user_profile_url = $this->config['leaderslinked.frontend.production_user_profile'];
|
284 |
$currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
|
292 |
}
|
285 |
$network = $currentNetworkPlugin->getNetwork();
|
293 |
|
286 |
|
Línea 294... |
Línea 287... |
294 |
$userMapper = UserMapper::getInstance($this->adapter);
|
287 |
$userMapper = UserMapper::getInstance($this->adapter);
|
295 |
$user = $userMapper->fetchOne($feed->user_id);
|
288 |
$user = $userMapper->fetchOne($feed->user_id);
|
296 |
|
289 |
|
297 |
$item['owner_time_elapse'] = Functions::timeAgo( $feed->added_on, $now);
|
290 |
$item['owner_time_elapse'] = Functions::timeAgo( $feed->added_on, $now);
|
298 |
$item['feed_priority'] = $feed->priority;
|
291 |
$item['feed_priority'] = $feed->priority;
|
299 |
$item['owner_url'] = str_replace('[uuid]', $user->uuid, $user_profile_url);
|
292 |
$item['owner_url'] = 'https://'. $network->main_hostname . '/profile/view/' . $user->uuid;
|
300 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]);
|
293 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]);
|
301 |
$item['owner_name'] = $user->first_name . ' ' . $user->last_name;
|
294 |
$item['owner_name'] = $user->first_name . ' ' . $user->last_name;
|