mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix(api): restore br for lyrics in legacy API
This commit is contained in:
parent
4a4bbaf8a7
commit
0e5e1c6089
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class SongController extends Controller
|
|||
public function show(Song $song)
|
||||
{
|
||||
return response()->json([
|
||||
'lyrics' => $song->lyrics,
|
||||
'lyrics' => nl2br($song->lyrics), // backward compat
|
||||
'album_info' => $this->mediaInformationService->getAlbumInformation($song->album)?->toArray() ?: [],
|
||||
'artist_info' => $this->mediaInformationService->getArtistInformation($song->artist)?->toArray() ?: [],
|
||||
'youtube' => $this->youTubeService->searchVideosRelatedToSong($song),
|
||||
|
|
Loading…
Reference in a new issue