1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

View File

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