取消点赞,取消评论
This commit is contained in:
@@ -123,7 +123,7 @@ class PostFavoriteService
|
||||
|
||||
$where = [];
|
||||
$where['post_id'] = $param['post_id'];
|
||||
$where['user_id'] = $param['user_id'];
|
||||
$where['user_id'] = $request->user->uid;
|
||||
$count = PostFavorite::where($where)->delete();
|
||||
|
||||
if ($count) {
|
||||
|
||||
Reference in New Issue
Block a user