mirror of https://github.com/pixelfed/pixelfed.git
Update like api, store status_profile_id and is_comment
This commit is contained in:
parent
8edd829436
commit
c8c6b98380
|
@ -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 New Issue