forked from mirror/pixelfed
Update ApiV1Controller, fix unfavourite bug #2088
This commit is contained in:
parent
cdb6385298
commit
01525cba4c
|
@ -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'),
|
||||||
|
|
Loading…
Reference in New Issue