From c91a6a7542e6d0c88029bb8f883a683d6f80958c Mon Sep 17 00:00:00 2001 From: Daniel Supernault <877217+dansup@users.noreply.github.com> Date: Thu, 1 Sep 2022 01:33:22 -0600 Subject: [PATCH 1/2] Update ApiV1Controller, fix typo in statusFavouriteById method --- app/Http/Controllers/Api/ApiV1Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 80e76a9b2..54d31044c 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1113,7 +1113,7 @@ class ApiV1Controller extends Controller $like->is_comment = !empty($status['in_reply_to_id']); $like->save(); Status::findOrFail($status['id'])->update([ - 'favourites_count' => ($status['favourites_count'] ?? 0) + 1 + 'likes_count' => ($status['favourites_count'] ?? 0) + 1 ]); LikePipeline::dispatch($like); } From 50b3369a09bec4f9c54554ab6ebe44aa1483b3f2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault <877217+dansup@users.noreply.github.com> Date: Thu, 1 Sep 2022 01:34:59 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7533bf1e8..23bbb9378 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ - Update AP helpers, remove cache lock from profileUpdateOrCreate method and move webfinger + key_id to unique constraints to fix sql duplicate errors ([bc2bbc14](https://github.com/pixelfed/pixelfed/commit/bc2bbc14)) - Add migrations to fix webfinger profiles ([66aa8bf9](https://github.com/pixelfed/pixelfed/commit/66aa8bf9)) - Update ap helpers, move remote_url constraint ([acd8f5bb](https://github.com/pixelfed/pixelfed/commit/acd8f5bb)) +- Update ApiV1Controller, fix typo in statavouriteById method ([c91a6a75](https://github.com/pixelfed/pixelfed/commit/c91a6a75)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)