| Línea 1203... |
Línea 1203... |
| 1203 |
* @param Company $company
|
1203 |
* @param Company $company
|
| 1204 |
* @return array
|
1204 |
* @return array
|
| 1205 |
*/
|
1205 |
*/
|
| 1206 |
private function renderFeed($feed_id, $now, $group_uuid)
|
1206 |
private function renderFeed($feed_id, $now, $group_uuid)
|
| 1207 |
{
|
1207 |
{
|
| 1208 |
|
- |
|
| 1209 |
$sandbox = $this->config['leaderslinked.runmode.sandbox'];
|
1208 |
$currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
|
| 1210 |
if($sandbox) {
|
- |
|
| 1211 |
$company_profile_url = $this->config['leaderslinked.frontend.sandbox_company_profile'];
|
- |
|
| 1212 |
$user_profile_url = $this->config['leaderslinked.frontend.sandbox_user_profile'];
|
- |
|
| 1213 |
|
- |
|
| 1214 |
} else {
|
- |
|
| 1215 |
$company_profile_url = $this->config['leaderslinked.frontend.production_company_profile'];
|
- |
|
| 1216 |
$user_profile_url = $this->config['leaderslinked.frontend.production_user_profile'];
|
1209 |
$network = $currentNetworkPlugin->getNetwork();
|
| 1217 |
}
|
- |
|
| Línea 1218... |
Línea 1210... |
| 1218 |
|
1210 |
|
| Línea 1245... |
Línea 1237... |
| 1245 |
];
|
1237 |
];
|
| Línea 1246... |
Línea 1238... |
| 1246 |
|
1238 |
|
| 1247 |
|
1239 |
|
| 1248 |
$userMapper = UserMapper::getInstance($this->adapter);
|
1240 |
$userMapper = UserMapper::getInstance($this->adapter);
|
| 1249 |
$user = $userMapper->fetchOne($feed->user_id);
|
1241 |
$user = $userMapper->fetchOne($feed->user_id);
|
| 1250 |
$item['owner_url'] = str_replace('[uuid]', $user->uuid, $user_profile_url);
|
1242 |
$item['owner_url'] = 'https://'. $network->main_hostname . '/profile/view/' . $user->uuid;
|
| 1251 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]);
|
1243 |
$item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]);
|
| 1252 |
$item['owner_name'] = $user->first_name . ' ' . $user->last_name;
|
1244 |
$item['owner_name'] = $user->first_name . ' ' . $user->last_name;
|
| Línea 1337... |
Línea 1329... |
| 1337 |
$comment_count++;
|
1329 |
$comment_count++;
|
| 1338 |
$comment['comment_index']=$comment_count;
|
1330 |
$comment['comment_index']=$comment_count;
|
| 1339 |
$user = $userMapper->fetchOne($record->user_id);
|
1331 |
$user = $userMapper->fetchOne($record->user_id);
|
| 1340 |
if($user->id == $owner->user_id) {
|
1332 |
if($user->id == $owner->user_id) {
|
| 1341 |
$comment['user_image'] = $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image ]);
|
1333 |
$comment['user_image'] = $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image ]);
|
| 1342 |
$comment['user_url'] = str_replace('[uuid]', $company->uuid, $company_profile_url);
|
1334 |
$comment['user_url'] = 'https://'. $network->main_hostname . '/company/view/' . $company->uuid;
|
| 1343 |
$comment['user_name'] = $company->name;
|
1335 |
$comment['user_name'] = $company->name;
|
| 1344 |
} else {
|
1336 |
} else {
|
| 1345 |
$comment['user_image'] = $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image ]);
|
1337 |
$comment['user_image'] = $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image ]);
|
| 1346 |
$comment['user_url'] = str_replace('[uuid]', $user->uuid, $user_profile_url);
|
1338 |
$comment['user_url'] = 'https://'. $network->main_hostname . '/profile/view/' . $user->uuid;
|
| 1347 |
$comment['user_name'] = $user->first_name . ' ' . $user->last_name;
|
1339 |
$comment['user_name'] = $user->first_name . ' ' . $user->last_name;
|
| 1348 |
}
|
1340 |
}
|
| Línea 1349... |
Línea 1341... |
| 1349 |
|
1341 |
|
| 1350 |
if($record->user_id == $currentUser->id||$highPerformanceTeamsGroupsMember->type!=HighPerformanceTeamsGroupsMembers::TYPE_USER) {
|
1342 |
if($record->user_id == $currentUser->id||$highPerformanceTeamsGroupsMember->type!=HighPerformanceTeamsGroupsMembers::TYPE_USER) {
|
| Línea 1370... |
Línea 1362... |
| 1370 |
|
1362 |
|
| 1371 |
|
1363 |
|
| 1372 |
$user = $userMapper->fetchOne($record2->user_id);
|
1364 |
$user = $userMapper->fetchOne($record2->user_id);
|
| 1373 |
if($user->id == $owner->user_id) {
|
1365 |
if($user->id == $owner->user_id) {
|
| 1374 |
$answer['user_image'] = $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image ]);
|
1366 |
$answer['user_image'] = $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image ]);
|
| 1375 |
$answer['user_url'] = str_replace('[uuid]', $company->uuid, $company_profile_url);
|
1367 |
$answer['user_url'] = 'https://'. $network->main_hostname . '/company/view/' . $company->uuid;
|
| 1376 |
$answer['user_name'] = $company->name;
|
1368 |
$answer['user_name'] = $company->name;
|
| 1377 |
} else {
|
1369 |
} else {
|
| 1378 |
$answer['user_image'] = $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image ]);
|
1370 |
$answer['user_image'] = $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image ]);
|
| 1379 |
$answer['user_url'] = str_replace('[uuid]', $user->uuid, $user_profile_url);
|
1371 |
$answer['user_url'] = 'https://'. $network->main_hostname . '/profile/view/' . $user->uuid;
|
| Línea 1380... |
Línea 1372... |
| 1380 |
$answer['user_name'] = $user->first_name . ' ' . $user->last_name;
|
1372 |
$answer['user_name'] = $user->first_name . ' ' . $user->last_name;
|
| 1381 |
}
|
1373 |
}
|
| Línea 1422... |
Línea 1414... |
| 1422 |
$company = $companyMapper->fetchOne($currentCompany->id);
|
1414 |
$company = $companyMapper->fetchOne($currentCompany->id);
|
| Línea 1423... |
Línea 1415... |
| 1423 |
|
1415 |
|
| 1424 |
$companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
|
1416 |
$companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
|
| Línea -... |
Línea 1417... |
| - |
|
1417 |
$owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);
|
| - |
|
1418 |
|
| Línea 1425... |
Línea 1419... |
| 1425 |
$owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);
|
1419 |
$currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
|
| 1426 |
|
- |
|
| 1427 |
|
- |
|
| 1428 |
|
- |
|
| 1429 |
$sandbox = $this->config['leaderslinked.runmode.sandbox'];
|
- |
|
| 1430 |
if($sandbox) {
|
- |
|
| 1431 |
$company_profile_url = $this->config['leaderslinked.frontend.sandbox_company_profile'];
|
- |
|
| 1432 |
$user_profile_url = $this->config['leaderslinked.frontend.sandbox_user_profile'];
|
- |
|
| 1433 |
} else {
|
- |
|
| Línea 1434... |
Línea 1420... |
| 1434 |
$company_profile_url = $this->config['leaderslinked.frontend.production_company_profile'];
|
1420 |
$network = $currentNetworkPlugin->getNetwork();
|
| Línea 1435... |
Línea 1421... |
| 1435 |
$user_profile_url = $this->config['leaderslinked.frontend.production_user_profile'];
|
1421 |
|
| Línea 1453... |
Línea 1439... |
| 1453 |
|
1439 |
|
| 1454 |
|
1440 |
|
| 1455 |
$user = $userMapper->fetchOne($record->user_id);
|
1441 |
$user = $userMapper->fetchOne($record->user_id);
|
| 1456 |
if($user->id == $owner->user_id) {
|
1442 |
if($user->id == $owner->user_id) {
|
| 1457 |
$item['user_image'] = $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image ]);
|
1443 |
$item['user_image'] = $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image ]);
|
| 1458 |
$item['user_url'] = str_replace('[uuid]', $company->uuid, $company_profile_url);
|
1444 |
$item['user_url'] = 'https://'. $network->main_hostname . '/profile/view/' . $company->uuid;
|
| 1459 |
$item['user_name'] = $company->name;
|
1445 |
$item['user_name'] = $company->name;
|
| 1460 |
} else {
|
1446 |
} else {
|
| 1461 |
$item['user_image'] = $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image ]);
|
1447 |
$item['user_image'] = $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image ]);
|
| 1462 |
$item['user_url'] = str_replace('[uuid]', $user->uuid, $user_profile_url);
|
1448 |
$item['user_url'] ='https://'. $network->main_hostname . '/profile/view/' . $user->uuid;
|