mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 15:03:17 +00:00
Update ApiV1Controller, fix typo in statusFavouriteById method
This commit is contained in:
parent
e11d1336c6
commit
c91a6a7542
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue