Línea 180... |
Línea 180... |
180 |
|
180 |
|
181 |
|
181 |
|
182 |
|
182 |
|
183 |
return new JsonModel([
|
183 |
return new JsonModel([
|
184 |
'user_uuid' => $user->uuid,
|
184 |
'user_uuid' => $user->uuid,
|
185 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
185 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image],['force_canonical' => true]),
|
186 |
'fullname' => trim($user->first_name . ' ' . $user->last_name),
|
186 |
'fullname' => trim($user->first_name . ' ' . $user->last_name),
|
187 |
'description' => empty($userProfile->description) ? '' : trim($userProfile->description) ,
|
187 |
'description' => empty($userProfile->description) ? '' : trim($userProfile->description) ,
|
188 |
'country' => $country,
|
188 |
'country' => $country,
|
189 |
'visits' => $visits,
|
189 |
'visits' => $visits,
|
190 |
'connections' => $connections,
|
190 |
'connections' => $connections,
|
191 |
'image_size' => $image_size,
|
191 |
'image_size' => $image_size,
|
192 |
'feed' => '',
|
192 |
'feed' => '',
|
193 |
'routeTimeline' => $routeTimeline,
|
193 |
'routeTimeline' => $routeTimeline,
|
194 |
'routeDailyPulse' => $routeDailyPulse,
|
194 |
'routeDailyPulse' => $routeDailyPulse,
|
195 |
'moodle_name' => $currentNetwork->moodle_name ? $currentNetwork->moodle_name : '',
|
195 |
'moodle_name' => $currentNetwork->moodle_name ? $currentNetwork->moodle_name : '',
|
Línea 196... |
Línea 196... |
196 |
'moodle_image' => $this->url()->fromRoute('storage-network', ['type' => 'moodle']),
|
196 |
'moodle_image' => $this->url()->fromRoute('storage-network', ['type' => 'moodle'],['force_canonical' => true]),
|
Línea 262... |
Línea 262... |
262 |
|
262 |
|
263 |
|
263 |
|
264 |
|
264 |
|
265 |
return new JsonModel([
|
265 |
return new JsonModel([
|
266 |
'user_uuid' => $user->uuid,
|
266 |
'user_uuid' => $user->uuid,
|
267 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
|
267 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image],['force_canonical' => true]),
|
268 |
'fullname' => trim($user->first_name . ' ' . $user->last_name),
|
268 |
'fullname' => trim($user->first_name . ' ' . $user->last_name),
|
269 |
'description' => empty($userProfile->description) ? '' : trim($userProfile->description) ,
|
269 |
'description' => empty($userProfile->description) ? '' : trim($userProfile->description) ,
|
Línea 274... |
Línea 274... |
274 |
'routeTimeline' => $routeTimeline,
|
274 |
'routeTimeline' => $routeTimeline,
|
275 |
'formFeed' => $formFeed,
|
275 |
'formFeed' => $formFeed,
|
276 |
'formShare' => $formShare,
|
276 |
'formShare' => $formShare,
|
277 |
'imageSize' => $imageSize,
|
277 |
'imageSize' => $imageSize,
|
278 |
'moodle_name' => $currentNetwork->moodle_name,
|
278 |
'moodle_name' => $currentNetwork->moodle_name,
|
279 |
'moodle_image' => $this->url()->fromRoute('storage-network', ['type' => 'moodle']),
|
279 |
'moodle_image' => $this->url()->fromRoute('storage-network', ['type' => 'moodle'],['force_canonical' => true]),
|
280 |
'microlearning_appstore' => $currentNetwork->microlearning_appstore,
|
280 |
'microlearning_appstore' => $currentNetwork->microlearning_appstore,
|
281 |
'microlearning_playstore' => $currentNetwork->microlearning_playstore,
|
281 |
'microlearning_playstore' => $currentNetwork->microlearning_playstore,
|
282 |
]);
|
282 |
]);
|
283 |
}
|
283 |
}
|
284 |
}
|
284 |
}
|