|
@@ -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();
|
|
|
|