|
@@ -99,7 +99,7 @@ trait PostTrait
|
|
|
$item->like_count = Redis::ZCOUNT($key, $item->id, $item->id);
|
|
|
}
|
|
|
}else{
|
|
|
- $comments = PostComment::where('post_id', $id)->where('parent_id', 0)->orderBy('like_count', 'desc')->orderBy('is_delete', 'asc')->orderBy('id', 'desc')->limit(2)->get();
|
|
|
+ $comments = PostComment::where('post_id', $id)->where('parent_id', 0)->where('is_delete', 0)->orderBy('like_count', 'desc')->orderBy('id', 'desc')->limit(2)->get();
|
|
|
foreach($comments as $item){
|
|
|
$userComment = $this->userInfo($item->uid);
|
|
|
$isLike = 0;
|