1
0
Fork 0
forked from mirror/pixelfed

Update LikeController, hide like counts

This commit is contained in:
Daniel Supernault 2021-05-01 16:01:32 -06:00
parent 477db75896
commit ea68724054
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -62,7 +62,7 @@ class LikeController extends Controller
StatusService::del($status->id);
if ($request->ajax()) {
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => $count];
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => 0];
} else {
$response = redirect($status->url());
}