Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16769 | Rev 16822 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16769 Rev 16817
Línea 872... Línea 872...
872
 
872
 
873
 
873
 
Línea 874... Línea -...
874
        $request = $this->getRequest();
-
 
875
        if ($request->isGet()) {
874
        $request = $this->getRequest();
876
 
875
        if ($request->isGet()) {
877
 
876
 
878
            $page = (int) $this->params()->fromQuery('page');
877
            $page = (int) $this->params()->fromQuery('page');
879
            $type   = $this->params()->fromRoute('type');
878
            $type   = $this->params()->fromRoute('type');
Línea 1217... Línea 1216...
1217
     */
1216
     */
1218
    private function renderFeed($feed_id, $now, $group_uuid = '', $myt_id = '')
1217
    private function renderFeed($feed_id, $now, $group_uuid = '', $myt_id = '')
1219
    {
1218
    {
Línea 1220... Línea -...
1220
 
-
 
1221
 
-
 
1222
 
-
 
1223
 
1219
 
1224
 
1220
 
1225
        $currentUserPlugin = $this->plugin('currentUserPlugin');
1221
        $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 1226... Línea 1222...
1226
        $currentUser = $currentUserPlugin->getUser();
1222
        $currentUser = $currentUserPlugin->getUser();
Línea 1326... Línea 1322...
1326
        if ($feed->file_type == Feed::FILE_TYPE_VIDEO) {
1322
        if ($feed->file_type == Feed::FILE_TYPE_VIDEO) {
1327
            $item['owner_file_image_preview'] = $this->url()->fromRoute('storage', ['code' => $feed->uuid, 'type' => 'feed', 'filename' => $feed->file_image_preview]);
1323
            $item['owner_file_image_preview'] = $this->url()->fromRoute('storage', ['code' => $feed->uuid, 'type' => 'feed', 'filename' => $feed->file_image_preview]);
1328
            $item['owner_file_video'] = $this->url()->fromRoute('storage', ['code' => $feed->uuid, 'type' => 'feed', 'filename' => $feed->file_name]);
1324
            $item['owner_file_video'] = $this->url()->fromRoute('storage', ['code' => $feed->uuid, 'type' => 'feed', 'filename' => $feed->file_name]);
1329
        }
1325
        }
Línea -... Línea 1326...
-
 
1326
 
-
 
1327
        
-
 
1328
 
1330
 
1329
        
1331
        if($feed->file_type == Feed::FILE_TYPE_FAST_SURVEY) {
1330
        if($feed->file_type == Feed::FILE_TYPE_FAST_SURVEY) {
1332
            $item['comment_add_url'] = '';
1331
            $item['comment_add_url'] = '';
1333
            $item['comments'] = [];
1332
            $item['comments'] = [];
1334
        } else {
1333
        } else {
1335
            $commentMapper = CommentMapper::getInstance($this->adapter);
1334
            $commentMapper = CommentMapper::getInstance($this->adapter);
1336
            $records = $commentMapper->fetchAllPublishedByFeedId($feed->id);
1335
            $records = $commentMapper->fetchAllPublishedByFeedId($feed->id);
Línea 1337... Línea 1336...
1337
    
1336
            
1338
    
1337
    
1339
            $comments = [];
1338
            $comments = [];
1340
            $comment_count = 0;
1339
            $comment_count = 0;