feat: add like and save for playlist
This commit is contained in:
@@ -81,11 +81,15 @@ public function show($id)
|
||||
'total_musics' => $playlist->musics->count(),
|
||||
'total_duration' => $playlist->total_duration,
|
||||
'total_comments' => $playlist->comments_count,
|
||||
'total_likes' => $playlist->likes_count,
|
||||
'total_saves' => $playlist->saved_count,
|
||||
],
|
||||
'user_interaction' => [
|
||||
'has_commented' => $playlist->has_user_commented,
|
||||
'user_comment' => $playlist->user_comment,
|
||||
'user_comment_id' => $playlist->user_comment_id,
|
||||
'has_liked' => $playlist->is_liked,
|
||||
'has_saved' => $playlist->is_saved,
|
||||
],
|
||||
'comments' => $comments,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user