mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-12 17:44:31 +00:00
Update ApiV1Controller, fix unfavourite bug #2088
This commit is contained in:
parent
cdb6385298
commit
01525cba4c
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue