wzq 5 vuotta sitten
vanhempi
commit
51b229913d
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      app/Repositories/Post/PostRepository.php

+ 4 - 0
app/Repositories/Post/PostRepository.php

@@ -434,6 +434,8 @@ class PostRepository
 
             if(!$comment->parent_id){
                 Redis::DEL('post_new_comment_'.$comment->post_id);
+            }else{
+                Redis::DEL('post_new_reply_'.$comment->id);
             }
             $virus = $this->behavior->where('behavior_identification', 'comment')->first();
             if ($virus) {
@@ -763,6 +765,8 @@ class PostRepository
 
             if(!$comment->parent_id){
                 Redis::DEL('post_new_comment_'.$comment->post_id);
+            }else{
+                Redis::DEL('post_new_reply_'.$comment->id);
             }
             return Response::create();