Update ApiV1Controller, fix unfavourite bug #2088

This commit is contained in:
Daniel Supernault 2020-03-20 21:16:31 -06:00
parent cdb6385298
commit 01525cba4c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -828,7 +828,7 @@ class ApiV1Controller extends Controller
->first();
if($like) {
$like->delete();
$like->forceDelete();
$status->likes_count = $status->likes()->count();
$status->save();
}
@ -946,7 +946,7 @@ class ApiV1Controller extends Controller
'title' => 'Pixelfed (' . config('pixelfed.domain.app') . ')',
'uri' => config('app.url'),
'urls' => [],
'version' => '2.7.2',
'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') . ')',
'environment' => [
'max_photo_size' => config('pixelfed.max_photo_size'),
'max_avatar_size' => config('pixelfed.max_avatar_size'),