Update CommentPipeline

pull/3136/head
Daniel Supernault 4 years ago
parent a578035bbc
commit 1515a9f111
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -93,5 +93,14 @@ class CommentPipeline implements ShouldQueue
NotificationService::set($notification->profile_id, $notification->id);
StatusService::del($comment->id);
});
if($exists = Cache::get('status:replies:all:' . $status->id)) {
if($exists && $exists->count() == 3) {
} else {
Cache::forget('status:replies:all:' . $status->id);
}
} else {
Cache::forget('status:replies:all:' . $status->id);
}
}
}

Loading…
Cancel
Save