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