Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5775 Rev 5780
Línea 166... Línea 166...
166
                'share_external_url' =>  $share_external_url,
166
                'share_external_url' =>  $share_external_url,
167
                'total_share_external' => $post->total_external_shared,
167
                'total_share_external' => $post->total_external_shared,
168
                'share_increment_external_counter_url' => $share_increment_external_counter_url,
168
                'share_increment_external_counter_url' => $share_increment_external_counter_url,
169
                'comments_url' => $this->url()->fromRoute('post/comments', ['id' => $post->uuid]),
169
                'comments_url' => $this->url()->fromRoute('post/comments', ['id' => $post->uuid]),
170
                'comments_add_url' => $this->url()->fromRoute('post/comments/add', ['id' => $post->uuid]),
170
                'comments_add_url' => $this->url()->fromRoute('post/comments/add', ['id' => $post->uuid]),
171
                'save_reaction_recommended_url' => $this->url()->fromRoute('feed/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_RECOMMENDED]),
171
                'save_reaction_recommended_url' => $this->url()->fromRoute('post/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_RECOMMENDED]),
172
                'save_reaction_support_url' => $this->url()->fromRoute('feed/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_SUPPORT]),
172
                'save_reaction_support_url' => $this->url()->fromRoute('post/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_SUPPORT]),
173
                'save_reaction_love_url' => $this->url()->fromRoute('feed/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_LOVE]),
173
                'save_reaction_love_url' => $this->url()->fromRoute('post/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_LOVE]),
174
                'save_reaction_interest_url' => $this->url()->fromRoute('feed/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_INTEREST]),
174
                'save_reaction_interest_url' => $this->url()->fromRoute('post/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_INTEREST]),
175
                'save_reaction_fun_url' => $this->url()->fromRoute('feed/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_FUN]),
175
                'save_reaction_fun_url' => $this->url()->fromRoute('post/save-reaction', ['id' => $post->uuid, 'reaction' => ContentReaction::REACTION_FUN]),
176
                'delete_reaction_url' =>  $this->url()->fromRoute('feed/delete-reaction', ['id' => $post->uuid]),
176
                'delete_reaction_url' =>  $this->url()->fromRoute('post/delete-reaction', ['id' => $post->uuid]),
177
                'my_reaction' => $reaction ? $reaction->reaction : '',
177
                'my_reaction' => $reaction ? $reaction->reaction : '',
178
                'reactions' =>  $reactions,
178
                'reactions' =>  $reactions,
179
                //'is_liked' => $contentReaction ? 1 : 0,
179
                //'is_liked' => $contentReaction ? 1 : 0,
180
                //'like_url' => $this->url()->fromRoute('post/like', ['id' => $post->uuid]),
180
                //'like_url' => $this->url()->fromRoute('post/like', ['id' => $post->uuid]),
181
                //'unlike_url' => $this->url()->fromRoute('post/unlike', ['id' => $post->uuid]),
181
                //'unlike_url' => $this->url()->fromRoute('post/unlike', ['id' => $post->uuid]),
Línea 566... Línea 566...
566
                ];
566
                ];
567
                return new JsonModel($response);
567
                return new JsonModel($response);
568
            }
568
            }
Línea 569... Línea 569...
569
            
569
            
570
            if ($contentReactionMapper->deleteByPostIdAndUserId($post->id, $currentUser->id)) {
570
            if ($contentReactionMapper->deleteByPostIdAndUserId($post->id, $currentUser->id)) {
Línea 571... Línea 571...
571
                $reactions = $contentReactionMapper->fetchCountContentReactionByPostId($post->id);
571
                $reactions = $contentReactionMapper->fetchCountContentReactionsByPostId($post->id);
572
                
572
                
573
                
573