mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update like api, store status_profile_id and is_comment
This commit is contained in:
parent
8edd829436
commit
c8c6b98380
1 changed files with 3 additions and 0 deletions
|
@ -817,6 +817,9 @@ class ApiV1Controller extends Controller
|
|||
]);
|
||||
|
||||
if($like->wasRecentlyCreated == true) {
|
||||
$like->status_profile_id = $status->profile_id;
|
||||
$like->is_comment = !empty($status->in_reply_to_id);
|
||||
$like->save();
|
||||
$status->likes_count = $status->likes()->count();
|
||||
$status->save();
|
||||
LikePipeline::dispatch($like);
|
||||
|
|
Loading…
Reference in a new issue