forked from mirror/pixelfed
Update LikeController, hide like counts
This commit is contained in:
parent
477db75896
commit
ea68724054
1 changed files with 49 additions and 49 deletions
|
@ -62,7 +62,7 @@ class LikeController extends Controller
|
||||||
StatusService::del($status->id);
|
StatusService::del($status->id);
|
||||||
|
|
||||||
if ($request->ajax()) {
|
if ($request->ajax()) {
|
||||||
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => $count];
|
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => 0];
|
||||||
} else {
|
} else {
|
||||||
$response = redirect($status->url());
|
$response = redirect($status->url());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue