|
@@ -64,7 +64,7 @@ class DetailTransformer extends TransformerAbstract
|
|
'is_like' => PostLike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_like' => PostLike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_dislike' => PostDislike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_dislike' => PostDislike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_collect' => PostCollect::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_collect' => PostCollect::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
- 'follow_status' => $isFollow,
|
|
|
|
|
|
+ 'is_follow' => $isFollow,
|
|
];
|
|
];
|
|
}
|
|
}
|
|
}
|
|
}
|