mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
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);
|
||||
|
||||
if ($request->ajax()) {
|
||||
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => $count];
|
||||
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => 0];
|
||||
} else {
|
||||
$response = redirect($status->url());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue