From a123243658f1bc54886a854cdc226759f03d348e Mon Sep 17 00:00:00 2001 From: Phan An Date: Sat, 29 Apr 2017 10:58:08 +0800 Subject: [PATCH] Always save contributing_artist_id for S3 put --- app/Http/Controllers/API/ObjectStorage/S3/SongController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/API/ObjectStorage/S3/SongController.php b/app/Http/Controllers/API/ObjectStorage/S3/SongController.php index d8ca8f75..8b3e2a7b 100644 --- a/app/Http/Controllers/API/ObjectStorage/S3/SongController.php +++ b/app/Http/Controllers/API/ObjectStorage/S3/SongController.php @@ -36,7 +36,7 @@ class SongController extends Controller $song = Song::updateOrCreate(['id' => Media::getHash($path)], [ 'path' => $path, 'album_id' => $album->id, - 'contributing_artist_id' => $compilation ? $artist->id : null, + 'contributing_artist_id' => $artist->id, 'title' => trim(array_get($tags, 'title', '')), 'length' => array_get($tags, 'duration', 0), 'track' => (int) array_get($tags, 'track'),